vippagunta has asked for the wisdom of the Perl Monks concerning the following question:
I have a Utility package which reads a couple of config files and does some other things like initializing log4perl etc. Other parts of my program(i.e. my other packages) need access to the contents of the config file and I don't want to pass the reference to my Utility package to other packages. So, I am thinking I need a Singleton. Is this the right approach?
Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Singleton question
by dHarry (Abbot) on Nov 17, 2009 at 07:28 UTC | |
|
Re: Singleton question
by pajout (Curate) on Nov 17, 2009 at 13:59 UTC |