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"; }
In reply to Re^5: Capturing error thrown by a database
by Marshall
in thread Capturing error thrown by a database
by puneet.keswani
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |