in reply to DIE or Fatals cause Redirect?

One way is if you use the signal $SIG{__DIE__}, you can provide your own subroutine to acomplish this when die is called. Read more on "How do I trap control characters/signals?" for more information.

Replies are listed 'Best First'.
Re: Re: DIE or Fatals cause Redirect?
by Malkavian (Friar) on Jul 20, 2001 at 16:19 UTC
    Beware signals..
    It's quite possible that the signal being handled at a 'bad time' will actually cause the process to segfault, which is worse than the initial behaviour that's being circumvented.

    Malk