Hi folks,
A noobie question here:
I have a plain simple cgi script in a directory configured for
Modperl::Registry:
#!/usr/local/bin/perl
use strict;
use warnings
use lib '../lib';
use MyApp;
print "Content-type: text/html\n\n";
print "hello\n";
-
T
I don't think Modperl::Registry sets the current working directory of of
the process when it runs your script, so that might be why it's having
problems. You can try RegistryPrefork instead, if you're running under
the prefork MPM. If not, then your script will need to be updated to
assumed that
Thanks Adam, I think you were right.
There was a small difference in the simplified example I wrote below to
the actual script I was running. The actual script actually had the path:
use lib '../../lib'; # which was correct relative to the script.
But when I switched this to:
use lib '../lib';