Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$dbh = DBI->connect( $connect_string, \%attr ); isa_ok $dbh, 'DBI::db'; if ( defined($dbh) ) { write_log( "INFO ", "Database connection OK" ); } else { write_log( "FAIL ", "Fail: $connect_string" ); write_log( "FAIL ", "Error connecting to database: Error $D +BI::err - $DBI::errstr" ); die "Error connecting to database: Error $DBI::err - $DBI::err +str"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test::More usage
by tobyink (Canon) on Sep 11, 2013 at 17:46 UTC | |
by Anonymous Monk on Sep 11, 2013 at 17:52 UTC |