http://www.perlmonks.org?node_id=622359


in reply to What is the difference between $DBI::errstr and $dbh->errstr?

As a sidenote, if you are using PL/SQL in DBD::Oracle, there is a special method for PL/SQL errors:
my $msg = $dbh->func( 'plsql_errstr' ); die $dbh->errstr if ! defined $msg; die $msg if $msg;