Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Exception handling - try Catch Method

by Matts (Deacon)
on Aug 28, 2004 at 16:02 UTC ( #386611=note: print w/ replies, xml ) Need Help??


in reply to Exception handling - try Catch Method

Along with the suggestions here, don't forget to take a look at the Fatal module (run "perldoc Fatal" on the command line) to see how to have open() automatically throw an exception when it fails to open the file. This automates what I consider most of the hard work of exceptions in perl (i.e. actually remembering to throw them!), and also includes useful error text in the exception.


Comment on Re: Exception handling - try Catch Method

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2015-03-26 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (595 votes), past polls