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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Surely there's more than one way to do it... (Score:2)
Second, I think I saw a module recently that did a
before invoking the eval or even inside it, before doing anything dangerous.
Some modules even do
though I don't know about any benefit. I guess there is none.
Re:Surely there's more than one way to do it... (Score:2)
That special var looks like what I want! Thank you!. Although by now I've adopted a totally different approach to get around it. :) But I still wanted to know the answer, because this is going to bite me again.
I tried local and the DEFAULT thing, but it still became a problem because I'm using modules by other people that do eval's.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This
Parent
Re: (Score:2)
-Dom
Re: (Score:2)
Personally I would have preferred it if $SIG{__DIE__} handlers would just not be called in eval. Life would have been a lot simpler, then.