my $mailbody; my $sth = $dbh->prepare($sqla); eval { $sth->execute(); }; if ($@) { $mailbody .= "Cannot insert into $database \n"; } else { $sth->finish(); # but why? probably not needed }
In reply to Re: trapping database errors
by perrin
in thread trapping database errors
by venki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |