use sigtrap 'handler', \&my_handler, 'normal-signals'; sub my_handler { open(STDERR, ">>test.err") or die "invisible error"; warn "die-ing at " . localtime() . " because of: $!\n"; }
does the job. Many thanks for your quick help.
In reply to Re^2: Implementing the counterpart of BEGIN
by punkish
in thread Implementing the counterpart of BEGIN
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |