Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Testing a module with eval() where $@ is clobbered (pre v5.14)by Anonymous Monk |
on Jan 17, 2016 at 11:50 UTC ( [id://1152967]=note: print w/replies, xml ) | Need Help?? |
Found 'em. RT#123738, RT#123773, and perlvar: Due to an implementation glitch, the $SIG{__DIE__} hook is called even inside an eval(). Do not use this to rewrite a pending exception in $@, or as a bizarre substitute for overriding CORE::GLOBAL::die(). This strange action at a distance may be fixed in a future release so that $SIG{__DIE__} is only called if your program is about to exit, as was the original intent. Any other use is deprecated.
In Section
Seekers of Perl Wisdom
|
|