Welcome to the Monastery | |
PerlMonks |
Re: Exception handling - try Catch Methodby Matts (Deacon) |
on Aug 28, 2004 at 16:02 UTC ( [id://386611]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|