On Fri, Apr 20, 2001 at 09:46:03PM -0700, Chip Wiegand wrote:
> On Fri, 20 Apr 2001 20:29:46 -0700 (PDT)
> Matt Cauthorn <[EMAIL PROTECTED]> surely must have wrote something
> like:
>
> > Or, you can do this from the command line:
> > perl -MCGI.pm
>
> I did this and got the following error:
> syntax error at - line 0, near "use CGI"
> execution of - aborted due to compilation errors.
>
> So, it is installed, but that command just has problems.
Specifically, it has the problem that you left the ".pm" on there...
When use()ing modules, you just use the name of the module (e.g. CGI),
rather than the name of the file the code of the module resides in (e.g.
CGI.pm).
dha, noting that that some of the terms, like "name", above may not be
strictly, *strictly* accurate, but should be good enough for this
discussion. </net type=safety>
--
David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/
perl is a language, and as such, is about as Y2K compliant as
Serbo-Croat. - David Cantrell in comp.lang.perl.misc