Re: PerlModule hell - questions and comments

2002-03-23 Thread Stas Bekman
Kee Hinckley wrote: At 4:18 PM -0500 3/22/02, Perrin Harkins wrote: Modules loaded with PerlModule and PerlRequire are not supposed to be loaded again the second time. I seem to remember that they are loaded again when using DSO though, so if you're using DSO you may want to recompile

Re: PerlModule hell - questions and comments

2002-03-23 Thread Kee Hinckley
At 7:04 PM +0800 3/23/02, Stas Bekman wrote: If all you want to do is to be able to load the module only during the restart use in startup.pl: if ($Apache::Server::ReStarting) { require My::Sensitive::Module; } No, the module has to be loaded during both phases, other wise the

Re: PerlModule hell - questions and comments

2002-03-22 Thread Perrin Harkins
Kee Hinckley wrote: 1. *Why* are the apache config files executed twice (completely with loading and unloading all the modules)? This is a core apache thing. Apache does it to verify that a restart is safe. See

Re: PerlModule hell - questions and comments

2002-03-22 Thread Kee Hinckley
At 4:18 PM -0500 3/22/02, Perrin Harkins wrote: Modules loaded with PerlModule and PerlRequire are not supposed to be loaded again the second time. I seem to remember that they are loaded again when using DSO though, so if you're using DSO you may want to recompile as static. Also, if you

Re: PerlModule hell - questions and comments

2002-03-22 Thread Perrin Harkins
Kee Hinckley wrote: At Embperl 2.0b6 Gerald switched to a new architecture. The previous version was just a plain Perl module loaded as a handler by mod_perl. This version is also an Apache module. Okay, if it's only in the recent betas then it's possible that only a few people have

Re: PerlModule hell - questions and comments

2002-03-22 Thread Kee Hinckley
At 5:11 PM -0500 3/22/02, Perrin Harkins wrote: Kee Hinckley wrote: At Embperl 2.0b6 Gerald switched to a new architecture. The previous version was just a plain Perl module loaded as a handler by mod_perl. This version is also an Apache module. Okay, if it's only in the recent betas then

Re: PerlModule hell - questions and comments

2002-03-22 Thread Kee Hinckley
At 5:11 PM -0500 3/22/02, Perrin Harkins wrote: In your case, PerlFreshRestart might help with what you're trying to do since it will clear %INC, but you may still have the problem with needing to call Init. PerlFreshRestart will reload the module and thus call Init, but PerlFreshRestart is