[Chicago-talk] A question of 'die'ing

Mike Fragassi frag at ripco.com
Tue Jan 30 13:16:44 PST 2007


On Mon, 29 Jan 2007, Shawn Carroll wrote:

> What are your thoughts on a library that will die if it is given
> invalid input?  Would use such a library if it required you to put
> eval blocks around it each time?

If you're serious about best practices for implementing exceptions, you 
should read Matt Sergeant's Exception Handling in Perl presentation:

   http://axkit.org/docs/presentations/tpc2002/exceptions.pdf

It's several years old, but I don't think the CPAN options have changed 
much, if at all.

-- Mike F.


More information about the Chicago-talk mailing list