in reply to Re^7: Modern Perl Programming Highs and Lows
in thread Modern Perl Programming Highs and Lows
Well... you neglected to account for DESTROY { eval {} } and DESTROY { die } for any objects created in your test code. You failed to account for buggy overloading in exception objects. To do all of that correctly you've got to use the return value of the eval{} to decide failure, hook and unhook $SIG{__DIE__}, save $@ so when you stringify it, you don't accidentally cause it to clobber itself.
Perl exception handling is actually a garden of pain.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: Modern Perl Programming Highs and Lows
by educated_foo (Vicar) on May 10, 2009 at 22:45 UTC | |
by diotalevi (Canon) on May 11, 2009 at 02:13 UTC |
In Section
Meditations