Welcome to the Monastery | |
PerlMonks |
Re^2: Sharing Namespacesby skazat (Chaplain) |
on Jan 27, 2006 at 09:25 UTC ( [id://525929]=note: print w/replies, xml ) | Need Help?? |
Yeah, I agree with the hashref idea is cleaner, I'm just a little committed to the current interface - which is just a namespace within Config.pm that gets exported to the script that's use()ing it. And actually, I don't see how you're idea would be any better - each module would still have to use() Config, and then go through the whole process of loading up the variables from the outside file, etc. Actually, this is almost exactly what I"m doing :) Understood, I can just pass $conf as a paramater for say, Two.pm's new() constructer.
-justin simoni
In Section
Seekers of Perl Wisdom
|
|