if ($dbh = DBI->connect(...)) { ...