Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My file requires upload_lib.pl which is in the CGI directory but it can't find it. The path to CGI is /var/www/cgi-bin and the path to the directory I am calling this from is /var/www/html.Can't locate ./cgi-bin/upload_lib.pl in @INC (@INC contains: /usr/lib/ +perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/per +l5/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-l +inux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/ven +dor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/ +5.8.0 .) at upload.cgi line 5.
What am I doing wrong with require ("./cgi-bin/upload_lib.pl");?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate file
by maa (Pilgrim) on Nov 24, 2004 at 07:42 UTC | |
|
Re: Can't locate file
by strat (Canon) on Nov 24, 2004 at 07:42 UTC |