in reply to Re: Strategies for exiting early for CGI::Application based webapp.
in thread Strategies for exiting early for CGI::Application based webapp.

I suppose that I could but my intention is to not muck around too much with the internals of CGI::Application. Are you suggesting something like:
sub safe_exit { my $self = shift; $self->teardown(); # Include other functions that should be run here. exit; }

--tidiness is the memory loss of environmental mnemonics

Replies are listed 'Best First'.
Re: Re: Re: Strategies for exiting early for CGI::Application based webapp.
by valdez (Monsignor) on Oct 22, 2003 at 16:48 UTC

    It is just another run mode, it issues only a redirect; teardown method will be called by CGI::Application itself. Also remember that you need to save any parameter that was passed along with the original request.

    Ciao, Valerio