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