|
Hi all,
I'm beginner in Perl. I need to concatenate three values in the date format like,
$fullDate = $ARGV[3] . "/index.html" . $ARGV[4] . "/index.html" . $ARGV[5];
|
|
But while concatenating, it is performing division on values. I have tried '.',':','-'. But its not working. I have to use some separator between the date, month and year.
Pls suggest me how to proceed.
Thanks a ton,
Padmaja T N.
|
|
|
#$fullDate = $ARGV[3] . "/index.html" . $ARGV[4] . "/index.html" . $ARGV[5];
#try this:
$fullDate = "$ARGV[3]"."\/$ARGV[4]"."\/$ARGV[5]";
|
|
|
Hi,
Thanks for responding.
Its doing the same thing,DIVISION.
|
|
|
|
|
Its working fine..
my argument.pl file contain below 2 lines
$fullDate = $ARGV[0] . "/index.html" . $ARGV[1] . "/index.html" . $ARGV[2];
print "value is $fullDate\n\n";
Below is the output.. and its not dividing.. its working fine..
[root@labportal RandD]# perl argument.pl 8 4 2
value is 8/4/2
|
|
|