Might be a typo in your use statement. The module name is "Getopt::Std" and
not "GetOpt::Std" with a capital "O".
You might want to try setting the "-w" switch at the beginning of your
script to help pick up possible typoes like this. "#!/usr/bin/perl -w"
Hope this helps.
Kind regards,
Trevor J. Joerges
--------------------------------------------
$_=q;rrUSFWPSZK.ZKPFSHFT,rkvtuZbopuifsZQZibdl
rrqpxfsfeZcyZQ,,riuuq://xxx.%.dpn,ru~@%.dpn ,rrr8-)
;;s;\~;kpfshft;g;s;\%;tfoenjnf;g;y;B-x;A-w;;
s;P;perl;g;s;,;\n;g;s;Y; ;g;s;q;\t;g;print;
--------------------------------------------
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 10:59 AM
Subject: RE: Web Hosting
: Hi all,
:
: Anyone know how/why the getopts() function doesn't work under Windows?
:
: - I have the GetOpt::Std package in stalled.
: - I have it listed in my use section...
:
: <snip>
: use GetOpt::Std;
: #require 'ftp.pl';
: $|=1; # Non-buffered output...
: </snip>
:
: - All I get is an undefined function error when I run the script...
:
: D:\Projects\Synapse\pr5990\Unix\FMPro\Scripts>perl FMPDriver.pl
: Undefined subroutine &main::getopts called at FMPDriver.pl line 1175.
:
: - Here's the command it fails on...
: <snip>
: if( ! getopts('d:u:p:g:l:stvhr:') ) {
: &printUsage();
: }
: </snip>
:
: tia,
:
: Adym Lincoln
: Edgewater Technology, Inc.
: Phone: (603) 644-2445, 7261
: Fax: (603) 669-8330
:
: Nothing great was ever achieved without enthusiasm. - Ralph Waldo Emerson
: _______________________________________________
: ActivePerl mailing list
: [EMAIL PROTECTED]
: To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
:
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs