Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: using require as c like #include?

by mce (Curate)
on Jan 20, 2004 at 10:47 UTC ( #322554=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://322554]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2016-10-26 14:16 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (341 votes). Check out past polls.