in reply to Re^3: error catching
in thread error catching

You're right. I completely forgot about the difference between carp and croak, mainly because I personally only use croak (and also because I tend to think that exceptions are much more useful in this particular case).

Replies are listed 'Best First'.
Re^5: error catching
by jettero (Monsignor) on Dec 20, 2006 at 01:05 UTC
    I totally agree that raise error should be on by default... I'd rather have an eval { $sth->execute }; if ($@) { ... } where I don't want it to just die, ya know? But hey, I could just turn it on I suppose. I never remember is the main problem with that plan.

    -Paul