H
howard.lum
I have a simple script that prints the number of passed arguments:
$numargs = scalar @ARGV;
print "numargs $numargs\n";
This script works fine on a number of our PCs but fails on two
particular PCs.
Invoking the script using 'numargs.pl 1 2 3' results in 0.
Invoking the script using 'perl numargs.pl 1 2 3' results in 3.
How can I get the first method to work properly? I am running v5.8.7
from ActiveState on Windows XP.
$numargs = scalar @ARGV;
print "numargs $numargs\n";
This script works fine on a number of our PCs but fails on two
particular PCs.
Invoking the script using 'numargs.pl 1 2 3' results in 0.
Invoking the script using 'perl numargs.pl 1 2 3' results in 3.
How can I get the first method to work properly? I am running v5.8.7
from ActiveState on Windows XP.