- or download this
$dbh->do(...) or handle_error();
$dbh->do(...) or handle_error();
$dbh->do(...) or handle_error();
$dbh->do(...) or handle_error();
- or download this
eval {
$dbh->do(...);
...
if($@) {
handle_error();
}
- or download this
use Fatal qw(open);
...
if($@) {
# and here we can't say if it was DBI problem or open
}