On Tue, Jun 16, 2009 at 02:49:36PM -0700, Bill Ward wrote:
> Arg, I meant to say $SIG{__WARN__} when I wrote the original
> message... sorry.  I was hoping to avoid that, since I think we are
> already messing around with %SIG in our applications too much as it
> is.

What would doing *anything* with other keys of %SIG have to do with it?  Or did
you mean that you're already using $SIG{__WARN__}, and overriding or wrapping
it again would be painful?

__WARN__ and __DIE__ are not my favorite tools ever, but a situation like this
(where you aren't going to be trying to pick up after the handler's done) isn't
egregious.

Also, I don't think you're going to find anything better without requiring that
all your packages import warnings FATAL => 'all', either directly or through
some intermediary module (see e.g. Modern::Perl for how to do this).

hdp.

Reply via email to