in reply to Send Config::General errors to Log4Perl

You can customize what happens when croak (a form of die) is called, see Perl's Warn and Die Signals for starters.

Replies are listed 'Best First'.
Re^2: Send Config::General errors to Log4Perl
by DavidFerrington (Acolyte) on Jan 28, 2010 at 17:34 UTC
    Thank you, I had forgotten I could do that.
    -- David
      In fact it was simpler - just call the new method of Config::General in an eval block and then check $@ !

      but this got me looking at __DIE__ and I have a use for that. I can trap the message etc. but other than doing an exit from my routine, I can't find a way of stopping Perl printing the die message.

      is that possible or is exit the right way ?

      -- David