use MyConf; my $dbh = DBI->connect("DBI:Pg:dbname=".$MyConf::db_name, $MyConf::user, $MyConf::passwd) or die $DBI::errstr;