Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Exception handling

by Anonymous Monk
on Oct 20, 2017 at 15:44 UTC ( #1201762=note: print w/replies, xml ) Need Help??


in reply to Exception handling

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1201762]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2018-05-21 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?