Front page | perl.perl5.porters |
Postings from October 1999
Re: deprecating SIGDIE
Thread Previous
|
Thread Next
From:
Nick Ing-Simmons
Date:
October 1, 1999 03:29
Subject:
Re: deprecating SIGDIE
Message ID:
199910011029.LAA15483@tiuk.ti.com
Graham Barr <gbarr@pobox.com> writes:
>The way I see it is that if eval{} did a local() then code which currently
>does
>
> eval { ... };
> if ($@) { ... }
>
>could be written as
>
> eval { $SIG{__DIE__} = \&handler; ... };
>
>and the $@ test is not needed.
The test is usually needed. The eval will still return, unless handler has
rendered the fail entirely harmless you typically need to
avoid executing something ...
--
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.
Thread Previous
|
Thread Next