On 16 Sep 2000 03:36:45 -0000, Perl6 RFC Librarian wrote:

>The current method in which C<__WARN__> and C<__DIE__> signal handlers are
>used is limited in 2ways:
>
>=over 8
>
>=item It does not allow them to accept robust parameter lists.
>
>=item It does not allow for multiple layers of handlers.

That's not all.

If you set $SIG{__DIE__} so that it prints out any error message in a
customized way, e.g. for fatals-to-browser in a CGI context. Then you
you do an eval() call, to do some error trapping. If it terminates with
an error, instead of just setting $@ and silently abort, perl will also
call this handler!

-- 
        Bart.

Reply via email to