in reply to Re: Re: Re: Re: Don't understand END blocks in mod_perl
in thread Don't understand END blocks in mod_perl

Okay, so the actual problem here is that your END blocks don't seem to run when you HUP the server? Have you tried putting in warnings in the END blocks to be certain that they aren't running?

Keep in mind that when you load the package with the END block makes a difference. If you load it during startup, it is supposed to run when each child exits. If you load it from an Apache::Registry script (or if it is in that script), it is supposed to run after each request.

By the way, usually the support for this kind of question is better on the mod_perl list than on PerlMonks, since there are more people there who are familiar with the internals of the mod_perl code.

  • Comment on Re: Re: Re: Re: Re: Don't understand END blocks in mod_perl