On Thu, 29 Mar 2001, Robin Berjon wrote:

> At 17:57 29/03/2001 +0800, Stas Bekman wrote:
> >On Thu, 29 Mar 2001, Robin Berjon wrote:
> >> just out of curiosity, has anyone used PerlRestartHandler ? To what use ? I
> >> don't know what I'd use it for, so I'm wondering whether I'm missing out on
> >> something really cool :)
> >
> >The eagle book says:
> >
> >PerlRestartHandler points to a routine that is called when the server
> >is restarted. This gives you the chance to step in and perform any cleanup
> >required to tweak the Perl interpreter.  For example, you could use this
> >opportunity to trim the global @INC path or collect statistics about the
> >modules that have been loaded.
>
> Ah yes, hadn't spotted that one, thanks Stas (once again...).

That's the benefit you get when you review someone's book. You get the
book's source text :) So I just use grep... after reading the book harcopy
once it's much more useful to have the source for an easy search and
copy-n-paste re-use...

> I thought about it as a kind of CleanupHandler that doesn't affect the
> time it takes for a child to be available for service again (for non
> per-request cleanups obviously) but I couldn't think of what could
> usefully be done there.

Are you writing yet another mod_perl book or something?

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to