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 Mike Lewis 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
  • 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

    Thx KevinADC :o)
  4. PerlElvir

    split array in array

    wow greate :) thx man
  5. PerlElvir

    split array in array

    yes but I didnt know how will I extraxt that dates? Do you know? If so that will be nice to make some script :o)
  6. PerlElvir

    split array in array

    Well yestrday Im find some one, but thx on rensponse anyway ;o) here is my way: use DBI; 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...
  7. 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...
  8. PerlElvir

    split problem [A-Z]

    Thx man :o)
  9. 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...
  10. PerlElvir

    how to delete from ... to...

    Thx all ;o)
  11. PerlElvir

    how to delete from ... to...

    ok thx, but what if I have like this: $var="ALID-1 77,00 &euro; 505.09 FF - ALID-2 77,00 &euro; 505.09 FF - ALID-3 77,00 &euro; 505.09 FF"; and I want to get only: $var="ALID-1 77,00 &euro; - ALID-2 77,00 &euro; - ALID-3 77,00 &euro;"; so delete all from &euro; till - but I dont want...
  12. 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";
  13. PerlElvir

    How to extract only number from string

    thx :o)
  14. 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";
  15. PerlElvir

    erase duplicated elements in array and make new array

    yap works fine ;o) thx dude
  16. 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]...
  17. PerlElvir

    array combination

    Thx you all special to you eewah ;) Im get what I need 1year-1month-1day-1name-1fruit-2day 1year-1month-1day-2name-2fruit-2day 2year-2month-1day-1name-1fruit-2day 2year-2month-1day-2name-2fruit-2day
  18. PerlElvir

    array combination

    Thx Trojan , but now with this yours code I get this: 1year-1month-1day-1name-1fruit-2day 2year-2month--2name-2fruit- but I need to have 4 combination: 1year-1month-1day-1name-1fruit-2day 1year-1month-1day-2name-2fruit-2day 2year-2month-1day-1name-1fruit-2day 2year-2month-1day-2name-2fruit-2day
  19. 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 =...
  20. PerlElvir

    Array last element

    My code dont work that for sure, I just wanted to let you know that I have loop and..., but "rharsh" you are the man ;) my $special = 'some text'; my @names = qw/Smith Elvir Damir/; for (my $i = 0; $i <= $#names; $i++) { if ($i == $#names) { print $names[$i].$special, "\n"; }...

Part and Inventory Search

Back
Top