package My; # do the DBI connection in here. Set My->dbh to be a ref to the DBI handle? package My::Collection; # check My->dbh to see if we're connected # accesses the collections table through My->dbh package My::Collection::Asset; # check My->dbh to see if we're connected # accesses the assets table through My->dbh