in reply to Re: YAML, $SIG{__DIE__}, Log4perl, $^S, and eval{}
in thread [SOLVED] YAML, $SIG{__DIE__}, Log4perl, $^S, and eval{}

(Sorry for the double reply, I can't seem to edit my first reply yet)
Or how about replacing each die with LOGDIE from use Log::Log4perl qw(:easy);

That is what I am trying to avoid. The whole raison d'être of this is to seamlessly add Log4perl to an existing script without having to go hunt down and change all the die() (and warn()) calls in the code.

  • Comment on Re^2: YAML, $SIG{__DIE__}, Log4perl, $^S, and eval{}

Replies are listed 'Best First'.
Re^3: YAML, $SIG{__DIE__}, Log4perl, $^S, and eval{}
by Anonymous Monk on Mar 21, 2014 at 14:33 UTC

    without having to go hunt down and change all the die() (and warn()) calls in the code.

    But you don't have to do that, you just have to add use whateveritwasthatexportsdie;; to the top of each module ... no search/replace