my static $dbh #### > my $ex1 = new DataSomething(); my $ex2 = new DataSomething(); $ex1->set_index( 1 ); $ex2->set_index( 2 ); # so they'll get different data $ex1->get_data(); # this would initialize the db and get the data $ex2->get_data(); # this would use the already initialized db