Welcome to the Monastery | |
PerlMonks |
Re: how to make a universally inherited method?by lachoy (Parson) |
on Nov 29, 2001 at 10:12 UTC ( [id://128294]=note: print w/replies, xml ) | Need Help?? |
I agree with IlyaM, a singleton makes more sense for this. A singleton is an object that can only be instantiated once -- successive requests for a new object just return the same one. The Class::Singleton module probably has one of the highest POD-to-code ratios on CPAN, but it's very useful. Your config module:
And you can use it:
Easy! Good luck. Chris
In Section
Seekers of Perl Wisdom
|
|