|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Re: Re: require fails in CGIby sandfly (Beadle) |
| on Oct 10, 2003 at 16:22 UTC ( [id://298406]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Because Perl looks in several directories to require or use files. The current working directory is always included in the list. When you tested your CGI script from the command line you cd'd to the directory and then ran it, so it worked. Your web server does not do this - it runs the script without changing its working directory to the CGI directory.
You could also have solved the problem with:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||