Catch Me If You Can: Sugary Exception Handling in Perl
by Ash Berlin
- 4,245 views
Exception handling in perl is currenlty far from perfect. eval leaves a lot to be desired. Lots of {dark,cpan} code is rife with pottential code that could interfere with $@ ...
Exception handling in perl is currenlty far from perfect. eval leaves a lot to be desired. Lots of {dark,cpan} code is rife with pottential code that could interfere with $@
TryCatch (on CPAN now) fixes this through the magic of Devel::Declare.
Breifly address what's wrong with eval, what I/we'd like, and then finally how it was done using Devel::Declare
Statistics
- Likes
- 4
- Downloads
- 71
- Comments
- 1
- Embed Views
- Views on SlideShare
- 4,234
- Total Views
- 4,245



Exception Handling with Exception::Class is a whole new experience. I have made it part of the coding standards at my firm and it has been a substantial factor in improving code quality.
Cheers! 3 years ago