Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Best practices for handling errors

by Anonymous Monk
on Sep 27, 2014 at 23:34 UTC ( [id://1102248]=note: print w/replies, xml ) Need Help??


in reply to Re: Best practices for handling errors
in thread Best practices for handling errors

You might want to make that use 5.014;, since that's when eval {...}; if ($@) {...} became safe(r) (see Exception Handling).

Replies are listed 'Best First'.
Re^3: Best practices for handling errors
by Your Mother (Archbishop) on Sep 28, 2014 at 03:46 UTC

    Good note. I use 5.16 and 5.20 normally. The 5.12 was boilerplate and I considered using Try/Try::Tiny in it but the example was long enough already.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1102248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found