Syntactic Confectionery Delight | |
PerlMonks |
try-catch with eval-dieby Anonymous Monk |
on Jun 29, 2009 at 17:10 UTC ( [id://775746]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I'm moving away from using Error qw(:try) into using just eval and die for my try-catch blocks. The annoying thing is that die always prints the line/file info at the end of the message. Is there a clean way of configuring what die prepends to $@? I just didn't want to regex-it out of $@ myself.
many thanks,
Back to
Seekers of Perl Wisdom
|
|