in reply to Re: $@ gets set differently on eval and Log::Dispatch::Email
in thread $@ gets set differently on eval and Log::Dispatch::Email
see Devel::EvalError it will probably help some (Why $@ is unreliable)
Thanks, that's the right direction, using Devel::EvalError instead of eval directly works. Does this package provide any hints on where eval and DESTROY are used without localizing $@? That's how I interpreted some of the statements but I can't figure out how to enable mentioned debug output. I came across that problem before in some of may packages and added a localization of $@ in DESTROY by convention. I think I would prefer this workaround for now until I maybe decide to switch to Devel::EvalError everywhere. I couldn't find any combination of DESTROY and eval in Log::Dispatch but there must be one somewhere as without Log::Dispatch everything was working fine...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: $@ gets set differently on eval and Log::Dispatch::Email
by Pickwick (Beadle) on Aug 12, 2013 at 17:24 UTC | |
by vsespb (Chaplain) on Aug 12, 2013 at 18:30 UTC | |
by Pickwick (Beadle) on Aug 12, 2013 at 20:40 UTC |