in reply to Re^4: perl w/ DBI connectiong to MSSQL, not reporting SQL server trigger errors
in thread perl w/ DBI connectiong to MSSQL, not reporting SQL server trigger errors
Is it bad in any way to leave the code like this?No, it's perfectly perlish. Though you can now take out the checks you already had (if you haven't already taken them out). E.g. change this:
to this:if ($dbh = DBI->connect(...)) { ...
Again, I'll also recommend using strict.my $dbh = DBI->connect(...., {RaiseError => 1});
|
|---|