Binish A R napsal(a):
arguments. Then how come I cannot access the first
element with $ARGV[0]?
I think @ARGV wont work in command line.
Try to write the code in a script and check it out.
#!/usr/bin/perl -w
print $ARGV[0];
$ perl script.pl arg_1
This returns arg_1 same as
c:\>perl -e "print $ARGV[0]" a1 a2
returns a1
for me.
(Windows XP, ActiveState perl 5.8.7)
HG
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>