On Sat, 2 Feb 2002, John Heitmann wrote: > Here is what I had to do to force correct module loading (mostly stolen > from the great mod_perl guide): > > %INC = (); # Possibly unnecessary > do 'FindBin.pm'; > unshift @INC, "$FindBin::Bin"; # There are also modules in the same dir > as the script > unshift @INC, "$FindBin::Bin/../lib/"; > > require MyModule; > import MyModule;
This isn't going to work if your modules store anything in package globals. You should probably empty the package stash before you load the new module. That'll also save you "subroutine redefined" warnings too, I think. > One obvious answer is to move the devel tree off of the same server as > the release tree. This is undoubtably the best way to go. > Any other ideas or places to RTFM? I've sometimes been able to get away with running the live version through Apache::Registry while developing small changes under mod_cgi. Then when the .cgi version is ready I just copy it into the .pl and restart. However, a full staging server is definitely preferable. -sam