in reply to Re (tilly) 1: How can two modules latch onto $SIN{__WARN__} or $SIG{__DIE__}?
in thread How can two modules latch onto $SIN{__WARN__} or $SIG{__DIE__}?

This is confusing: what's going on? The signal handler must return a subroutine/coderef to go to after it's done?

Where is this documented?

  • Comment on Re (tilly) 1: How can two modules latch onto $SIN{__WARN__} or $SIG{__DIE__}?

Replies are listed 'Best First'.
Re (tilly) 3: How can two modules latch onto $SIN{__WARN__} or $SIG{__DIE__}?
by tilly (Archbishop) on Jan 10, 2001 at 08:19 UTC
    Oops, it is late and I am tired.

    I just wanted to call and then return the return from that handler. I didn't want to return the reference itself without calling it.

    Anyways your problem is that you are editing the fact that the signal has been handled out of the call stack, so when it is rethrown you are called again.

    Actually just drop the goto and your code should work.