you should change if (!$result) { to if (!defined($dbh) ) { giving the following code, which should make more sense
if (!defined($dbh) ) { $errStr .= " [dbh UNDEFINED]".$testStr; $self->log_comment("ERROR: db_connect => ".$errStr); } else { $errStr .= " [dbh DEFINED]".$testStr; }
--
hiseldl
In reply to Re: DBI connect problem
by hiseldl
in thread DBI connect problem
by Marcello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |