Re: Arguments not passed in Windows XP
- From: Glenn Jackman <glennj@xxxxxx>
- Date: 6 Jun 2006 19:27:33 GMT
At 2006-06-06 02:59PM, howard.lum@xxxxxxxxxx <howard.lum@xxxxxxxxxx> wrote:
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.
Start a command prompt, and enter: ftype perl
It should report something like:
perl="\path\to\perl.exe" "%1" %*
Make sure you see the %* parameter at the end
--
Glenn Jackman
Ulterior Designer
.
- References:
- Arguments not passed in Windows XP
- From: howard . lum
- Arguments not passed in Windows XP
- Prev by Date: Re: Arguments not passed in Windows XP
- Next by Date: Re: how to read Chinese filenames?
- Previous by thread: Re: Arguments not passed in Windows XP
- Next by thread: FAQ 4.63 How do I reset an each() operation part-way through?
- Index(es):
Relevant Pages
|