At 09:04 AM 8/14/01 -0500, David Simcik wrote:
>I've been perusing the Camel book, the Cookbook, CGI Programming w/Perl, and
>Effective Perl for answers to this question, but have yet to find one or two
>definitive solutions. I've seen the standard die/eval() statements and the
>use of the various incarnations of Carp, but I have yet to see anyone say
>something along the lines of "this is the most common approach". I find
>myself longing for the consistency of try/catch blocks. Can anyone shed some
>light on the situation?

try/catch blocks will be in Perl 6.

If you want them in Perl 5, use the module Error.pm from CPAN.  I do, and I 
like it.

Some people think this is a needless embellishment on using die/eval, which 
is what Error.pm turns try/catch into anyway.  To each his/her own.

--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to