SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Catch Me If You Can: Sugary Exception Handling in Perl

by Working at my desk on Aug 11, 2009

  • 4,805 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

Views

Total Views
4,805
Views on SlideShare
4,794
Embed Views
11

Actions

Likes
4
Downloads
74
Comments
1

2 Embeds 11

http://www.slideshare.net 10
http://www.mefeedia.com 1

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • zarthustra7 Sanjay Bhatikar, Senior Manager at Monsanto Are you familiar with Exception::Class? Check my blog: codeunquote.blogger.com where I have a 5-part series on exception handling starting with basics and ending with Best Practices.

    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!
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Catch Me If You Can: Sugary Exception Handling in Perl Catch Me If You Can: Sugary Exception Handling in Perl Presentation Transcript