We don't bite newbies here... much | |
PerlMonks |
Re: Run 2 Subroutines after a dieby Dog and Pony (Priest) |
on Oct 03, 2002 at 07:46 UTC ( [id://202453]=note: print w/replies, xml ) | Need Help?? |
This is one way of doing it (I assume your subs are cleanup routines rather than routines that should output stuff in the die message?):
If that is any clearer may be disputed... I think it is, but some may disagree. Maybe '&&' instead of commas are more intiutive between the calls? That works too. The '1' is, as pointed out, what do returns to your die for printing. Hope that helps. You have moved into a dark place. It is pitch black. You are likely to be eaten by a grue.
In Section
Seekers of Perl Wisdom
|
|