Try this instead:
     use Getopt::Std;

Note the lowercase 'o' in 'Getopt'.  I tried it with an uppercase and I got
the same error.  Lowercase is no problem.  It seems this is case sensitive.

Paul O.


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 7: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

Reply via email to