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__}?

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.

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