in reply to Deprecated use of $SIG{__DIE__} is useful

The alternative would be to have a top level eval{} around your program that catches all uncaught exceptions and can apply processing like this to them.
  • Comment on Re: Deprecated use of $SIG{__DIE__} is useful

Replies are listed 'Best First'.
Re^2: Deprecated use of $SIG{__DIE__} is useful (stack)
by tye (Sage) on Mar 01, 2009 at 02:44 UTC

    No, a top-level eval cannot add a stack trace. It wouldn't catch the 'die' exception until after the stack had already been unrolled.

    - tye