Error checking - ways and means
Error checking the hard way...
$h->method || die "DBI method failed: $DBI::errstr";
$h->method || die "DBI method failed: $DBI::errstr";
$h->method || die "DBI method failed: $DBI::errstr";
Error checking the smart way...
$h->{RaiseError} = 1;
$h->method;
$h->method;
$h->method;