in reply to Re^2: RFC: Lexical Fatal.pm for Perl 5.10
in thread RFC: Lexical Fatal.pm for Perl 5.10

In both cases (and in most languages), the exceptions are handled at the end, or in the calling code.

Well, if you use the $SIG{__DIE__} = sub (...) approach, this has to be done up front. The two approachs, signal handler and block eval serve slightly different purposes, but can be mixed I think.

Anyway, good luck with your module :)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."