MySQL Forums
Forum List  »  Perl

Re: Validating a Successful DB connection
Posted by: Bill Karwin
Date: August 31, 2006 04:00PM

Connect() returns undef on error.

$dbh = DBI->connect(...);
if ($dbh == undef) ...

Regards,
Bill K.

Options: ReplyQuote


Subject
Written By
Posted
Re: Validating a Successful DB connection
August 31, 2006 04:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.