Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
Tanktalus is looking for any blogs or other sources of info on creating a "partial" cache - an incomplete cache that can tell the difference between data being present and known, data being absent and known, and data being unknown (we haven't looked for it
[Tanktalus]: yet, so it may or may not exist) in a reasonably fast and memory-efficient manner.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-08-16 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (171 votes). Check out past polls.

    Notices?