in reply to Odd convention? (fall-back module in BEGIN block)

Why localize $SIG{__DIE__} in that first eval?

I think this is in case there's already a $SIG{__DIE__} defined. The author would prefer that it be undefined—that die behave normally.

Replies are listed 'Best First'.
Re^2: Odd convention? (fall-back module in BEGIN block)
by j3 (Friar) on Feb 15, 2007 at 21:22 UTC

    Whoops. Right. Of course. Thanks kyle.

    (Edit): But why was it placed inside the eval string instead of the line above the eval?

      So as not to disturb the subsequent eval.

      As to why to inline the module, my guess is so as to keep the entire file runnable as a single file. To install it, just put it in the appropriate directory for your web server. That's it.