On Nov 30, 2006, at 6:07 PM, Hans-Joerg Bibiko wrote:
Alex,
The the reason we don't want to handle errors that were throw in eval blocks is the reason you mentioned. Typically, the user handles the error themself. But it is bad that $@ refers to exception_handler.pm line 34 after a die. I think we can fix this somehow.
Try the attached exception_handler.pm.
Hmm, can't Perl exception catching be done the way we do it in Ruby? My Perl is rusty but a close translation would be something like the following (I think):
END { if ($@) { # we are exiting with an exception here... } }
James Edward Gray II