in reply to Re: logging, to include unhandled exceptions
in thread logging, to include unhandled exceptions
Thanks... I'd considered __DIE__, but was a little put off by the warning in perlvar:
Having to even think about the $^S variable in your exception handlers is simply wrong. $SIG{__DIE__} as currently implemented invites grievous and difficult to track down errors. Avoid it and use an "END{}" or CORE::GLOBAL::die override instead.
I'm also not quite sure I understand the use of $^S, in your example. According to the man page, your code would propagate the die -- but only if executing an eval. Why not always do it?
Anyway, in light of the warning in perlvar, what "difficult to track down" errors am I apt to run into, here? I mean, is there a way to categorize them in some way?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: logging, to include unhandled exceptions
by ikegami (Patriarch) on Sep 02, 2008 at 19:31 UTC | |
by klassa (Acolyte) on Sep 02, 2008 at 20:10 UTC |