Jump to Content
Jump to Navigation

Archive for “March, 2008”

Handling exit within an eval

Saturday, March 15th, 2008

So 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 […]


Plugin Strategies in Open Source, Part 1

Saturday, March 15th, 2008

Once upon a time, I worked* on an open source groupware application called TWIG, The Web Information Gateway. I started posting fixes, wrote some code to scratch my itches, and pretty soon I got CVS commit access. I wrote a new module for scheduling meetings, and the guys on the development team loved it, […]