B
bkimelman
Perl on my Windows XP PC at the office is having a strange problem.
First, my version of Perl is 5.8.6 (downloaded from Activestate.com).
When I run a Perl script from the DOS command line the parameters I
specify are not placed into @ARGV !!! (This does not happen on my
Windows XP PC at home !)
Here is a sample test sc ript I wrote to demonstrate the problem:
=========================================
#!/usr/bin/perl -w
use strict;
my ( $count );
$count = scalar @ARGV;
print "ARGS [$count] ",join(", ",@ARGV),"\n";
exit 0;
==============================================
When I call the above script (named args.pl) as follows :
args.pl hello world
the output is : ARGS [0]
Where are my missing parameters ?
First, my version of Perl is 5.8.6 (downloaded from Activestate.com).
When I run a Perl script from the DOS command line the parameters I
specify are not placed into @ARGV !!! (This does not happen on my
Windows XP PC at home !)
Here is a sample test sc ript I wrote to demonstrate the problem:
=========================================
#!/usr/bin/perl -w
use strict;
my ( $count );
$count = scalar @ARGV;
print "ARGS [$count] ",join(", ",@ARGV),"\n";
exit 0;
==============================================
When I call the above script (named args.pl) as follows :
args.pl hello world
the output is : ARGS [0]
Where are my missing parameters ?