Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Exception handling

by Anonymous Monk
on Oct 20, 2017 at 15:44 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201762]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-20 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found