Perl: the Markov chain saw | |
PerlMonks |
Re^3: fork, %SIG, END.by etm117 (Pilgrim) |
on Aug 19, 2005 at 21:06 UTC ( [id://485307]=note: print w/replies, xml ) | Need Help?? |
I agree with that code block and think we are speaking towards the same thing. I use the local $? in my END block to preserve the exit code also.
I think I brought it up as an heads up because that bit me in the butt when I first started using the END block, I wasn't preserving the $? and therefore code inside the END block was causing it to be modified and the script not exiting with the value I wanted.
In Section
Seekers of Perl Wisdom
|
|