You are looking at a very old, but free version of the course.
If you are interesed the most recent version, check it out
on the Perl Maven site.
- Set the attributes PrintError and RaiseError
- Check for returned undef (or empty lists)
- Check $h->err and $h->errstr
(aka. $DBI::err and $DBI::errstr)
err - Native DB engine error code
errstr - Native DB engine error string
$sth = $dbh->prepare($statement) or die $dbh->errstr;
$rv = $sth->execute(@bind_values) or die $sth->errstr;
fetchrow_array (and others) return undef when no more row or if
they encounter an error. Use RaiseError or check $sth->err
If you are interested in on-site trainings by the author, please
contact me directly.