mnooning has asked for the wisdom of the Perl Monks concerning the following question:
Hello. I am using Windows 7, ActiveState Perl, # 5.24.1 MSWin32-x64-multi-thread.
It seems my code snippet test.pl will not work unless I use "perl" on the command line. There were no problems before I upgraded to 5.24.1 a few hours ago. Are my eyes just not seeing something? I get the same sort of results if I use Getopt::Long instead of ARGV
# C:\temp>test.pl --drive E # My argv's are and # drive is # C:\temp>perl test.pl --drive E # My argv's are --drive and E # drive is E use 5.18.2; say ("\tMy argv's are $ARGV[0] and $ARGV[1]");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ARGV not getting set
by ikegami (Patriarch) on Aug 04, 2017 at 03:36 UTC | |
by BillKSmith (Monsignor) on Aug 04, 2017 at 14:05 UTC | |
|
Re: ARGV not getting set
by Anonymous Monk on Aug 04, 2017 at 01:29 UTC | |
by mnooning (Beadle) on Aug 04, 2017 at 16:35 UTC | |
|
Re: ARGV not getting set
by karlgoethebier (Abbot) on Aug 04, 2017 at 08:03 UTC | |
|
Re: ARGV not getting set
by mnooning (Beadle) on Aug 04, 2017 at 00:22 UTC |