in reply to Re^2: DBI: pass $dbh from a sub
in thread DBI: pass $dbh from a sub

The DBI->connect method does not follow the RaiseError property. It returns undef on an error...
It used to be that way, but hasn't been for quite a while. Check the changes log.

Replies are listed 'Best First'.
Re^4: DBI: pass $dbh from a sub
by mifflin (Curate) on Jul 30, 2004 at 00:16 UTC
    yes, this was fixed some time ago, the Changes file in the DBI distribution says...
     Changes in DBI 0.91,	10th December 1997
      ...
      DBI->connect(..., { RaiseError=>1 }) now croaks if connect fails.
      ...