$dhb=new db connection Test::Package->($dbh); #call sub with db connection