Handling exit within an eval
Saturday, March 15th, 2008So I’ve run into a problem with mod_perlite, and it’s that I cannot just override Perl’s exit function with a straight perl_destruct call, a longjmp back to the Apache handler, or anything else at all.
Here’s how it’s handled in mod_perl.
And then there’s this possible workaround using goto.
Shockingly, this works, too.
Here’s my favorite…
bar.pl:
exit;
Foo.pm:
package Foo;
sub new […]