use DBI; use Module; $dbh- dbi->connect(...); $variable = $packageName->routine($dbh);