Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: PerlElvir
  • Content: Threads
  • Order by date
  1. PerlElvir

    MySQL Date problem

    HI all, I have this situation: I want to get all dates between curent date and 30 days, so I want to get now: 2006-05-22 2006-05-23 2006-05-24 2006-05-25 2006-05-26 . . . 2006-06-21 Now I use this script and I get only last date 2006-06-21. SO can some one help ;) #!/usr/bin/perl -w use...
  2. PerlElvir

    How to extract this??????

    Hi all I have one problem, so...I hope that someone can help ;) Ok so I have array which have always 1 element and from that first element I have to pars it like this: Example my @ace_param1 = ("Thu 27 Apr 20:50 Mexico City 14:35 +1 Frankfurt LH499 13h00 Business Flex (C) Fri 28 Apr 15:40...
  3. PerlElvir

    split array in array

    Hi Idont know how to eplain this, so than throught example and I hope that someone can help me;) so I have my @ace_param6 = ("LYON LONDON PARIS<"); my @ace_param7 = ("le 23 avr. 2006 : 398,00 @0@20060423@X@0@32823@@le 30 avr. 2006 : 354,00 @1@20060430@X@0@32823@@le 07 mai 2006 : 328,00...
  4. PerlElvir

    split problem [A-Z]

    Hi all , I want to split something by capital latter and I have this situation: $var="Sam 134 Dan 234 Hal 345"; @tax1 = split(/[A-Z]/, $var); now in array I have @tax1=("am 134","an 234","al 345") my question is how can I split by capital latter, but also to have that capital letter, so I...
  5. PerlElvir

    how to delete from ... to...

    Hi all, How can I delete some text from var? example $var="individuelle 77,00 &euro; 505.09 FF"; so now I want to delete and get $var="individuelle 77,00";
  6. PerlElvir

    How to extract only number from string

    Hi all, I have $var=" hello 7 hello"; and which regex I can use to get $var="7";
  7. PerlElvir

    erase duplicated elements in array and make new array

    Hi all, I want to ask can I erase duplicate elements and make new array without that old elements. example: @ins= ("ace","name","ace","car"); @outs= ("2","3"); foreach $var1 (0 .. $#ins) { foreach $var2 (0 .. $#outs) { $buffer = $outs[$var2]."----".$ins[$var1]...
  8. PerlElvir

    array combination

    Hi all, I have 2 x 3 array so I need to make combination between to get link example: my @year=("1year","2year"); my @month=("1month","2month"); my @day_1=("1day"); ------ my @name=("1name","2name"); my @fruit=("1fruit","2fruit"); my @day_2=("2day"); ------- SO I need to get this: link =...
  9. PerlElvir

    Array last element

    How can I join ($special) to last element in array? so I have : --------------------------- @names=(Smith,Elvir,Damir) and $special ---------------------- now I have for loop ------------------------ for ( $i = 0; $i <= $#names; ++$i ) { print $names."\n"; }...
  10. PerlElvir

    combination-sort

    Hi all, I dont know how to explain so I will make example what I need, so I hope... I have in MySQL: 1.row Elvir(field1),Damir(field2),Smith(field3),Players(field4) So now I want tu put in new insert like this: 1.row Elvir(field1) 2.row Damir(field1) 3.row Smith(field1),Players(field2) SO...
  11. PerlElvir

    Sort question

    Hi all, this forum help me a lot of time I hope now will be same :o) Ok I have in one row name with few value so I want that value become for that name one by one exampl: Cris 25 13 12 and I want to have Cris 25 Cris 13 Cris 12
  12. PerlElvir

    combination help script

    Hi all, can someone help me to make this script with combination, because Im begginer :o). I have : a1 a2 a3 and b1 b2 b3 so I need script which will make all combination: a1:b1,a1:b2,a1:b3,a2:b1,a2:b2...
  13. PerlElvir

    Extract Regular Expression?

    I have one question, so I have: $string1 = "Hello World\n"; my ($var1) = $string1 =~ /H\s*(.*)\s*l/i; whan I print $var1 I extract "ello Wor" and my question is how I can manipulate with this, because there is 3 times repeat latter "l", but in this case he is take only last? How can I took 1...
  14. PerlElvir

    Delate from var

    Have can I replace or delete some text from var? example: $var= ; 1679.25 FF =- something =70,00 now I want to delete from ; to - and get $var=- something =70,00
  15. PerlElvir

    Extract problem

    Hi all ;) How I can extract to first "?" if I have two "?" example: $var= I have ? and I woild like ? finish this; so I want to from $var make 2 new so extract have to be till ?(first and seconde) $first= I have $seconde=I have ? and I woild like
  16. PerlElvir

    how to extract data between two number

    Actualy I need also and numbers. So I have: $date = 10 déc. 2005 how I can get $day = 10 $month = déc. $year = 2005
  17. PerlElvir

    Date problem

    Im begginer so if can help me... :0) So I have two dates and I want to multiply by n number. Example: first_date = 21.10.2005 seconde_date = 20.11.2005 Now I want first date to multiplay for 5(or any number what I want) and I have to get: 26.10.2005 31.10.2005 05.11.2005 . . . 20.11.2005...
  18. PerlElvir

    EXTRACT PROBLEM-Extract all till first number

    How can I extract something till first numbrer? example: $link='can you help me 12' So I need from this var 'can you help me' without number 12. I need this as soon as posible :(
  19. PerlElvir

    how can I read info from this page?

    Have can I read value from page www.skibed.fr/selection.aspx there is a lot js (ectualy I need to open middle frame alone, is that posible?)?
  20. PerlElvir

    Problem with extract $1(have 2 same value)

    Hi all I hope that I'll get quick response ;) I have 2 var: $ado = "Hi my name is Elvir and I have a problem"; $elva = " Can anyone help me"; $var = trans_type($ado); $var1 = $var; $var1 =~ /my\s*(.*)\s*Elvir/; $var1 = $1; print "First:".$var1."\n"; $xvar = trans_type($elva); $xvar1 =...

Part and Inventory Search

Back
Top