in reply to Attempting to trap a DBI->connect error
This will force DBI to throw errors with a die that you must catch with an eval.my $dbh = DBI->connect('db conn info here','userid','password',{RaiseE +rror => 1});
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Attempting to trap a DBI->connect error
by Hammy (Scribe) on Jan 07, 2007 at 16:57 UTC |