use DbConnect; use DBI; my $dbh = DBI->connect(DbConnect::connection("foo"), { printError => 0, raiseError => 1 }); ...