Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Error handling - how much/where/how?

by xdg (Monsignor)
on Jun 13, 2005 at 13:40 UTC ( #466158=note: print w/replies, xml ) Need Help??

in reply to Re: Error handling - how much/where/how?
in thread Error handling - how much/where/how?

You might want to be careful using Error. There can be some unexpected negative side-effects. Perrin's write up Re: Re2: Learning how to use the Error module by example has the details. (I've written Exception::Class::TryCatch to bring some try/catch sugar to the Exception::Class module, and you might consider that in place of Error.)


Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re^2: Error handling - how much/where/how?

Replies are listed 'Best First'.
Re^3: Error handling - how much/where/how?
by ruoso (Curate) on Jun 13, 2005 at 16:23 UTC
    Yeah, actually I had segfaults with Error prior to 0.15, but I'll consider switching to any other module, as Error is kindly to generate weird behaviour when you do something wrong... I just didn't know any good one...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://466158]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-10-21 23:50 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.