Just another Perl shrine | |
PerlMonks |
Re^7: bad die behaviour?by nimdokk (Vicar) |
on Sep 10, 2007 at 13:58 UTC ( [id://638077]=note: print w/replies, xml ) | Need Help?? |
You might want to consider using $SIG{__DIE__} instead of the FatalError subroutine. Put what you are doing in the FatalError into the subroutine for the DIE signal handler, evaluate $? (instead of $!) before die'ing. Something like:
In Section
Seekers of Perl Wisdom
|
|