note
Dog and Pony
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?):
<code>
open TST, ">>$var1"
or One(), Two(), die "Could not open '$var1': $!";
</code>
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.
<p>
The '1' is, as pointed out, what <code>do</code> returns to your die for printing.
</p>
<p>
Hope that helps.
</p>
<hr />
<i>You have moved into a dark place.<br />
It is pitch black. You are likely to be eaten by a grue.</i>
202447
202447