use dir_one::my_package; BEGIN { # force this to run before the "use" below print Dumper(\%my_hash); } use dir_two::my_package; print Dumper(\%my_hash);