> I have discovered the joys of cgiapp_postrun(), but I found that
> sometimes (or for a particular runmode) it may be desireable to skip it.
I don't know if there's an elegant way to do what you want.
The quick and dirty way would be to set a flag and then skip your
postrun processing when the flag is set. Something like this:
sub show_error_page {
my $self = shift;
$self->param('skip_postrun' => 1);
return "Something bad happened";
}
sub cgiapp_postrun {
my $self = shift;
unless ($self->param('skip_postrun')) {
# ... do normal postrun processing here
}
}
> Using C::A 3.31 (I think - I have no access to the actual module on the
> webserver).
You might be able to find out by looking at the $CGI::Application::VERSION
variable somewhere in your code.
Michael
---
Michael Graham <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]