develooper Front page | perl.beginners | Postings from January 2002

command line args in Windows 2000

Thread Next
From:
Rich Rochelle
Date:
January 8, 2002 18:04
Subject:
command line args in Windows 2000
Message ID:
3C3BA4FF.42ED3785@amcc.com
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


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About