Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl'
by halley (Prior) on Apr 01, 2004 at 18:36 UTC | |
by fglock (Vicar) on Apr 01, 2004 at 19:14 UTC | |
by Anonymous Monk on Apr 01, 2004 at 18:43 UTC | |
by halley (Prior) on Apr 01, 2004 at 18:46 UTC | |
by Anonymous Monk on Apr 01, 2004 at 18:47 UTC | |
|
Re: Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl'
by Anonymous Monk on Apr 01, 2004 at 18:52 UTC |