ezekiel has asked for the wisdom of the Perl Monks concerning the following question:
I have a CGI script running under Apache mod_perl. It uses a particular module, that exists in two locations, say:
/the/correct/location/Module.pm
/the/WRONG/location/Module.pm
The Apache configuration must preload the module from the WRONG location, as checking %INC at the very beginning of the script shows the module has indeed come from that location. I cannot change this configuration.
How do I force the script to reload the module from the alternate location?
I have tried several use lib statements but whenever I try to use the methods in the module, it is clear they are still coming from the WRONG version
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forcing modules to reload from a specific location
by nite_man (Deacon) on May 26, 2003 at 06:13 UTC | |
|
Re: Forcing modules to reload from a specific location
by pzbagel (Chaplain) on May 26, 2003 at 05:56 UTC |