Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Monday December 31, 2001
10:38 AM

More on $SIG handlers

[ #1837 ]
After fumbling around with $SIG{__DIE__} in conjunction with 'eval', I happened to come across a thread on clpm that led me to a Damian Conway article that discussed this very topic.

His solution was to create a local copy of CORE::GLOBAL::die and use that instead. Seems like a good idea, one that I wish had been discussed in the multitude of perl books that I've read.

Time to test it out now...

Addendum Ok - tested it out. Works like a charm. In fact, it probably ought to be the standard idiom and not $SIG{__DIE__}.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.