davidj has asked for the wisdom of the Perl Monks concerning the following question:
directory listing:use lib "/home/davidj/perl/lib/survey";
http error output:andromeda:davidj lib > pwd /home/davidj/perl/lib/survey andromeda:davidj survey > ls -l total 4 -rw-r--r-- 1 davidj users 1444 Oct 23 03:09 survey.pm
I have tested other directories and nothing seems to work. However, if I do this:[Mon Oct 23 03:23:49 2006] [error] [client 127.0.0.1] Can't locate sur +vey.pm in @INC (@INC contains: /home/davidj/perl/lib/survey /usr/lib/ +perl5/site_perl/5.8.8/i386-linux-thread-multi .....
and put the module file in that directory, with the pages being served out of /var/www/cgi-bin/survey, it all works fine.use lib "/var/www/cgi-bin/survey/lib/";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: unexpected use lib behavior
by Tomte (Priest) on Oct 23, 2006 at 09:49 UTC | |
by davidj (Priest) on Oct 23, 2006 at 09:54 UTC | |
Re: unexpected use lib behavior
by gellyfish (Monsignor) on Oct 23, 2006 at 09:50 UTC | |
Re: unexpected use lib behavior
by tinita (Parson) on Oct 23, 2006 at 09:47 UTC | |
Re: unexpected use lib behavior
by andyford (Curate) on Oct 23, 2006 at 09:44 UTC | |
by davidj (Priest) on Oct 23, 2006 at 09:51 UTC |