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.
critic to the rescue (Score:1)
The problem of needing to localise special variables is discussed in http://perldoc.perl.org/perlobj.html#Destructors [perl.org].
There is a P::C policy ErrorHandling::RequireCheckingReturnValueOfEval [cpan.org] that catches this programming mistake. Its documentation also offers an alternative approach where you don't need to mess with other people's destructors to make it work.
Reply to This
Re: (Score:1)
Did you mean to say