I've been porting a CGI to mod_perl, and had it working. Then last night
mod_perl and apache were upgraded and recompiled and it stopped working. 

The script parses the URL for a command name (ex: ?cmd=search) and then hands
off the job to a different module (ex: search.pm). 

The path for this module is loaded as a library with the use command at the
beginning of the module which dispatches all the different commands (use lib
'/data/public/myapp/dev/lib';). The dispatcher parses the module name at during
execution, not at compile time. 

>From the mod_perl guide:
(http://perl.apache.org/guide/porting.html#Reloading_Modules_and_Required_F), it
looks as if the use statment is only effective during compile time, and the @INC
is reset to normal, which wouldn't include this path. Am I understanding this
correctly? And if I am understanding this correctly, I'm curious why it was
working in the first place.

Steve Cochran
Dartmouth College

Reply via email to