We don't bite newbies here... much | |
PerlMonks |
Re: Exception handlingby Anonymous Monk |
on Oct 20, 2017 at 15:44 UTC ( [id://1201762]=note: print w/replies, xml ) | Need Help?? |
If a runtime exception is bringing your program to a halt, the proper approach is to trap the exception so that it does not. In Perl, the exception-trapping block is rather-improbably called eval{...}. There are CPAN modules which provide the more-conventional try...except syntax.
In Section
Seekers of Perl Wisdom
|
|