No such thing as a small change | |
PerlMonks |
(elbie): checking whether DBI connection madeby elbie (Curate) |
on Aug 16, 2001 at 17:57 UTC ( [id://105375]=note: print w/replies, xml ) | Need Help?? |
There have been a lot of good suggestions so far. I just
wanted to add my .16th of a bit (as in shave-and-a-haircut
bits, not the memory bits).
If a DBI->connect fails, there will be an error string set in DBI::errstr. This is analogous to the $dbh->errstr when you have an open db handle. The perldoc on DBI will have more info. e.g.
elbieelbieelbie
In Section
Seekers of Perl Wisdom
|
|