Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- @ARGV not getting command line arguments
March 22, 2005, 1:24 pm
rate this thread
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:
my ( $count );
$count = scalar @ARGV;
print "ARGS [$count] ",join(", ",@ARGV),"\n";
When I call the above script (named args.pl) as follows :
args.pl hello world
the output is : ARGS 
Where are my missing parameters ?
Re: @ARGV not getting command line arguments
On 22/03/2005, email@example.com wrote:
> When I run a Perl script from the DOS command line the parameters I
> specify are not placed into @ARGV !!!
When you type
at the CMD prompt, do you get something like
Perl="C:\Perl\bin\perl.exe" "%1" %*
If not, type