What shell are you using? Std Dos Commmand or something else? Within 
definition or assignment of pl to perl, it should look something like:

File types should have Open:  D:\Perl\bin\Perl.exe "%1" %*

Under one build of ActiveState, there were a number of problems in this area 
concerning file type setups. W/o the setup above, @ARGV ( Std way under w2k to 
params/arguments) from the command line will not work.

Wags ;)

-----Original Message-----
From: Rich Rochelle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 18:04
To: [EMAIL PROTECTED]
Subject: command line args in Windows 2000


Hi,

I have no idea how much traffic is on this list, and I have searched all
day for an answer to this question.  How do I pass command line
arguments to Perl under Windows 2000?  I have the following code
snippet:

&GetOptions("size=s");
print "\nsize is $opt_size\n";
exit;

$opt_size never appears to get assigned to anything.  I have also tried
to use the @ARGV array, with no luck.  I have been using Perl on Unix
for years, and this is my first (and maybe last) attempt at using Perl
on Windows 2000.  Thanks in advance!

-Rich


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to