http://qs321.pair.com?node_id=322554


in reply to using require as c like #include?

I prefer the kiss solution :-)
Package Cfg::Hash; $Cfg::Hash::HoH={ A => 1 }; 1;
and in the main code:
use Cfg::Hash; # provided it can be found warn $Cfg::Hash::HoH->{A};
So, just fully qualify your hashes, and it is very easy to find where they are defined. (and strict will not complain).
ps: this is similar to the our approach.
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium