On Fri, 22 Oct 2004 16:34:52 -0400, Bob Showalter
<[EMAIL PROTECTED]> wrote:
> Jim Goh wrote:
> > Hi,
> >       I try to use module CGI::Session:DB_File for the following:
> >
> > #!/usr/bin/perl
> >
> > use strict;
> > use CGI;
> > use lib '.';
> 
> This is unnecessary; . is a part of @INC by default.
> 
> > use CGI::Session::DB_File;
> > ...
> > and the DB_File module also locate same directory as the script is.
> 
> How did it get there? Perl is looking for the file CGI/Session/DB_File.pm
> relative to any of the directories in @INC.
> 
> > However stil get the following says can not find:
> >
> > Can't locate CGI/Session/DB_File.pm in @INC (@INC contains: .
> > /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 ....
> 
> Which is of course true. You can see what it's looking for.
> 
> You need to use the proper procedure to install modules and not just copy
> .pm files around.

And consider reading the error messages that perl gives you... IT REALLY
REALLY tries to be helpful...

> 
>   perldoc perlmodinstall
>   perldoc -q 'How do I install a module from CPAN?'
>   perldoc -q 'How do I keep my own module/library directory?'
>   perldoc -f require
> 
> 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to