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...
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...
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...
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...
Hi all,
How can I delete some text from var?
example
$var="individuelle 77,00 € 505.09 FF";
so now I want to delete and get
$var="individuelle 77,00";
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]...
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 =...
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";
}...
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...
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
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...
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...
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
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
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...
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 :(
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 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.