Philip M. Gollucci wrote: > Justin Luster wrote: > >> No I was not using Modperl::RegistryCooker. I guess I will have to >> "use" it. >> >> In Mod_Perl my "library" files get loaded into memory. If I want to >> make a change to the "library" file (one that my main.pl file >> "requires") I cannot since it is in memory or cache. To get it to >> realize the update I usually have to reset Apache. I'm hoping for an >> easier way especially since sometimes I don't have the right to reset >> the server. > > Why not Apache2::Reload > http://perl.apache.org/docs/2.0/user/coding/coding.html#Auto_Reloading_Modified_Modules_with_Apache2__Reload
Or for more manual control: ModPerl::Util::unload_package("My::Library"); require My::Library; http://perl.apache.org/docs/2.0/api/ModPerl/Util.html#C_unload_package_ -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature