I've always noticed this little glitch on win32 and was wondering if there is a way to fix it. Namely, calling a script as 'perl foo.pl arg1 arg2' gives @ARGV = qw(arg1 arg2);, while 'foo.pl arg1 arg2' gives an empty @ARGV. What gives? And is there a way to fix this behaviour? Are the arguments passed in anywhere else (I've checked in @_, no luck).
In reply to Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl' by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |