in reply to DBI, rows, and do
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI, rows, and do
by jZed (Prior) on Jun 06, 2005 at 02:11 UTC |