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

The CGI::Application Wiki has an article called "Order of Operations" which also details a way to cleanly exit early.

The beef of it is:

sub mymode { ... $self->teardown(); print $self->_send_headers(); exit; }

HTH

--
"To err is human, but to really foul things up you need a computer." --Paul Ehrlich

  • Comment on Re: Strategies for exiting early for CGI::Application based webapp.
  • Download Code