in reply to Re^2: Forgetfulness and 6-months-from-now-you
in thread Forgetfulness and 6-months-from-now-you

I COULD override die, I guess, and generate something that way. But my laziness doesn't extend that far.

I would probably be that lazy:

my $dbh=DBI->connect(..., {RaiseError => 1}); # later: if (eval { # use $dbh # perhaps the entire API handling 1; }) { # report success to the API } else { my $error=$@; # Post-Process $error if needed # report $error to the API }

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)