more useful options | |
PerlMonks |
die and subroutine comboby Anonymous Monk |
on Oct 08, 2003 at 11:01 UTC ( [id://297534]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Please advise how I can call a subroutine in a die statement. I have a mail subroutine that I want to call if a file doesnt open and I want to get the error message to print out in my STDERR.
This is not working but this is what Iam trying to do:
Back to
Seekers of Perl Wisdom
|
|