in reply to Can't call on undefined value (DBI) + constructive feedback asked.
$dbh = DBI->connect($datasource, $username, $password, {RaiseError => +1}) or die $DBI::errstr;
RaiseError doesn't affect the actual connect() call, just any method called on the $dbh afterwards.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't call on undefined value (DBI) + constructive feedback asked.
by mifflin (Curate) on Aug 03, 2004 at 15:27 UTC |