ok sorry for the lack of a script before,
here is a little test script i wrote to try to figure out how to use the
Getopt::Std module.
-----------------------------------------------
!#/usr/local/bin/perl
use Getopt::Std;
getopt("abc");
print "$opt_a - $opt_b - $opt_c\n";
-----------------------------------------------
so then at the command line I type:
perl test.pl -a help, -b me, -c please
i even tried:
perl test.pl -a help -b me -c please
both times i get the error:
"use" not allowed in expression at test.pl line 3, at end of line
syntax error at test.pl line 3, near "use Getopt::Std"
Execution of test.pl aborted due to compilation errors.
i've tried including other modules, such as CGI or DBI, both of which are
included in numerous other scripts that run on my webserver (the same machine).
So what am I doing wrong here????
-Bob
--- Chas Owens <[EMAIL PROTECTED]> wrote:
> Can you post an example script?
>
> On 05 Jun 2001 12:03:03 -0700, Bob Mangold wrote:
> > Hello,
> >
> > It seems that whenever I attempt to use the 'use' command, I get an error.
> The
> > error says '"use" not allowed in expression at......'. Funny thing is that
> I
> > have CGI scripts that execute just fine from the command-line. I've tried
> > creating just very simple programs and I always get the error. I'm not sure
> > what to do.
> >
> > I'm using perl 5.6.0 on a Solaris 8 machine.
> >
> > Thanks,
> > Bob
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year! http://personal.mail.yahoo.com/
>
> --
> Today is Sweetmorn, the 10th day of Confusion in the YOLD 3167
> Kallisti!
>
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/