in reply to SIG{__DIE__}, Storable, and Log::Agent...
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.
The key line is "even inside an eval()". Log::Agent is not found in the eval, and perl calls your DIE hook.
Not knowing more about what you are trying to accomplish, I can only suggest moving the begin block after the use Storable; line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SIG{__WARN__}, Storable, and Log::Agent...
by ph713 (Pilgrim) on May 06, 2005 at 21:00 UTC | |
by ph713 (Pilgrim) on May 06, 2005 at 21:23 UTC |