Or if you want it performed across the board you could create a die signal handler e.gopen(TMPFILE,"<datafile.txt") or do { mysub(); die "Cant open: $!" };
See. the die docs for more info.$SIB{__DIE__} = sub { mysub(); die @_ };
_________
broquaint
In reply to Re: die and subroutine combo
by broquaint
in thread die and subroutine combo
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |