won't print anything useful upon failing to create $dbh, since you can't in this case call a method on an object whose construction failed. You probably want something more like:$dbh = DBI->connect(...) || die "DB connect failed: " . $dbh->errstr;
Update: jZed++!$dbh = DBI->connect(...) || die "DB connect failed: ", DBI->errstr;
In reply to Re: DBI, rows, and do
by trammell
in thread DBI, rows, and do
by drrngrvy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |