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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1201762]
[karlgoethebier]: ...good Hot tuna. Note the stacks & racks in the background
[karlgoethebier]: ..the last hippies. They still perform. At least the survivors...
[Discipulus]: not survived
[Discipulus]: has pm some danish monk?
[Discipulus]: erix the problem was not rain in the brain.. ;=)
[erix]: I'll think about that for a bit; I'll figure it out

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-11-17 20:20 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.