Just to clarify, you're able to invoke the script by typing
script_name.pl, right?
Because one possible reason would be that your file association somehow
didn't take when you installed activeperl.
Also, does it work if you do:
my $userid = $ARGV[0];
?
-----Original Message-----
From: Daniel Kasak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 5:40 PM
To: Perl Beginners
Subject: Script's command-line options under Windows
Hi all.
I've got an app than runs on Linux and Windows. I invoke it:
script_name.pl USERID
where USERID is a number that identifies the user. Under Linux, and
under *some* Windows 2000 installations, I can then get the value of
USERID:
my $userid = shift;
However I just noticed that on a new installation ( latest ActiveState
Perl, Windows 2000 sp4 ), this isn't working. What's even more
frustrating is that if I fire the script up under Komodo, the
command-line options *are* accepted ( ie I get a $userid ).
What's up?
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>