>I need some help with a dumb problem I've got: > >For some reason, arguments from the Windows cmd.exe command line are no longer being >passed into my Perl >scripts via @ARGV. > >Used to work fine. > >I tried removing Perl. Reinstalled (ActiveState) Perl (5.8.3.809-MSWin32-x86.msi) (on >XP). No help! > >Anyone have any ideas? > >-Colin
You mean this doesn't work? Or you're doing something different? -------aa.pl------ #!perl -w use strict; unless(@ARGV) { print "No args\n"; exit 0; } for(my $c = 0; $c < @ARGV; $c++) { print "Arg " . $c . " = " . $ARGV[$c] . "\n"; } --------------------- D:\test>perl aa.pl No args D:\test>perl aa.pl one two three Arg 0 = one Arg 1 = two Arg 2 = three D:\test> - Lynn. _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs