> From: Jones Robert Contr 81 CS/SCK 

> $dbh=DBI->connect($data, $login, $pw) || die "$dbh->errstr\n";

> "$dbh->errstr\n";

>      END;") || die "$dbh->errstr\n";

Probably not related to your specific problem, but:

Putting $dbh->errstr inside quotes is wrong. Double
quotes will interpolate variables, but not method
calls. And if you're going to die on any error anyway,
you may as well put RaiseError=>1 in the connect and
save yourself from all those '|| die ...' clauses.

HTH,
Douglas Wilson

Reply via email to