in reply to Re: Don't understand error messages
in thread Don't understand error messages

The module is located in F:\perl\lib. I noticed that this path is not listed but then, my cgi.pm module is located in the same directory and I don't get an error for that.
use CGI qw(:standard);
Why the error for this module? I can put it in the f:\perl\web directory, but I thought it would be better to put it with the other modules. Any ideas?

Thanks.

Replies are listed 'Best First'.
Re^3: Don't understand error messages
by kwaping (Priest) on Jul 26, 2005 at 16:47 UTC
    See if this line helps:
    use lib 'F:\perl\lib';
Re^3: Don't understand error messages
by ikegami (Patriarch) on Jul 26, 2005 at 16:50 UTC
    The module is located in F:\perl\lib

    Add use lib 'F:\perl\lib'; somewhere before use UCSExt. That will tell Perl to look for it where it currently resides.

    my cgi.pm module is located in the same directory

    You must have two CGI.pm, and you're not using the one you think you are using.

Re^3: Don't understand error messages
by Codon (Friar) on Jul 26, 2005 at 17:01 UTC
    Are you sure that you are using CGI.pm from F:\perl\lib and not from somewhere else in @INC? Try running this simple script:
    use CGI.pm; print "$INC{CGI.pm}\n";
    That will tell you were Perl is really getting CGI.pm from.

    Ivan Heffner
    Sr. Software Engineer, DAS Lead
    WhitePages.com, Inc.
      I ran the script and the page was blank. What does that mean?

      Chris