[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Perl CGI



Ryan McDougall [mcdougrs yahoo com] wrote:
> 
> --- Jay Crews <jpc scooby jaycrews com> wrote:
> > Does "perl/mylib.pl" exist and where?
> > 
> > The error looks pretty descriptive.
> > It's not in INC, and probably not in $PWD/perl either.
> > Probably going to have to move it, or tell INC where it is.
> > 
> > 
> > > /home/mcdougrs/public_html/clarkson/tc442/home.cgi line 2. 
> 
> Yep the file lies right at the following location
> /home/mcdougrs/public_html/clarkson/tc442/perl/mylib.pl
> 
> > -- Jay Crews
> > jpc jaycrews com
> 
> Is there a way to tell INC to also look in the $PWD? Because I'm thinking it

Try the 'perl -V' command - the bottom of the output tells you what
your @INC contains.  Here's mine:

  @INC:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .

Notice the last line contains a dot(".") - that means that perl
looks in your current directory last.

HTH.

-- 
Hardy Merrill
Senior Software Engineer
Red Hat, Inc.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]