M
Mark_Galeck
Look at foobar.pl: (on WinXP and Strawberry Perl)
#!perl
print $#ARGV + 1 . " command-line arguments.\n";
D:\Perl>perl foobar.pl 1 1
2 command-line arguments.
D:\Perl>foobar.pl 1 1
0 command-line arguments.
Why is this so? How can I use @ARGV and shebang?
Thank you for your insights! Mark
#!perl
print $#ARGV + 1 . " command-line arguments.\n";
D:\Perl>perl foobar.pl 1 1
2 command-line arguments.
D:\Perl>foobar.pl 1 1
0 command-line arguments.
Why is this so? How can I use @ARGV and shebang?
Thank you for your insights! Mark