On 08 Jun 2004, you wrote in perl.beginners:

> Greetings,
> 
> For you professional Perl programmers: how do you approach
> exception-handling in the your world? I know there are a lot of ways
> Perl gives us to do this: basic 'die', eval'ing blocks of code and the
> Exception.pm module but is there a standard in the real world for
> handling exceptions? If I was assigned to modify some existing Perl
> code, what type of x-handling should I expect to see?
> 
> Thanks, Scott


Thank you for all your responses. I did a little research and found an 
article recommending the use of Error.pm for exception handling.

http://www.perl.com/pub/a/2002/11/14/exception.html

One of the author's reasons is Error.pm uses a mechanism similar to what is 
being proposed for perl6. RFC 88 describes this:

http://dev.perl.org/perl6/rfc/88.html

Coming from a C++ background, the OO-nature of Error.pm along with the 
familiar try {} catch {} syntax is appealing.

Just thought I'd share my findings...

-Scott

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to