in reply to Re^4: Capturing error thrown by a database
in thread Capturing error thrown by a database
do some experimenting, $@ may be same as the dbi's error string if PrintError =1.eval { some db command $dbh->do....; } if ($@) { print "$@\n"; print $DBI::Errstr,"\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Capturing error thrown by a database
by puneet.keswani (Novice) on Aug 01, 2011 at 13:33 UTC | |
by Marshall (Canon) on Aug 01, 2011 at 14:59 UTC | |
by puneet.keswani (Novice) on Aug 01, 2011 at 18:30 UTC | |
by Marshall (Canon) on Aug 01, 2011 at 15:02 UTC |