develooper Front page | perl.perl5.porters | Postings from October 1999

Re: deprecating SIGDIE

Thread Previous | Thread Next
Nick Ing-Simmons
October 1, 1999 05:41
Re: deprecating SIGDIE
Message ID:
Joshua N Pritikin <> writes:
>Isn't it that true that $SIG{__EXCEPTION__} will not be able to *change*
>the exception string/object, only record it?

That is true of __DIE__ these days too - but it can re-throw an 
alternative e.g. what do you do with :

$SIG{__EXCEPTION__} = sub { die "Gibberish" };
eval { die "Sanity" };
print $@;

Which is in essence what all the local hackery is to protect against.

Nick Ing-Simmons <>
Via, but not speaking for: Texas Instruments Ltd.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About