Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Which incarnation of try/catch to use?

by BillKSmith (Monsignor)
on Oct 02, 2023 at 15:01 UTC ( [id://11154795]=note: print w/replies, xml ) Need Help??


in reply to Which incarnation of try/catch to use?

Regardless of which try/catch you choose, you should consider using object oriented exceptions (Exception::Class). They are usually overkill, but can offer a big advantage when your catch has to know which exception it is handling.

The documentation is terse, but very good on how to use it, but offers little help on when. The only guidelines that I know of are in the book "Perl Best Practices".

Bill
  • Comment on Re: Which incarnation of try/catch to use?

Log In?
Username:
Password:

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

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

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.