Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I had done a little bit of C++ coding. The concept of packages/modules were not there in C++ then. And not having done some reading on Perl first, I had begun to implement objects that I needed only one instance of as singletons even if the objects consisted of only methods and no data.
I am still not very familiar with the package/module concepts. But reading a bit, I get the feeling that I should be using modules rather than the singletons.
Just need a bit of an advice to get on the right track.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module vs Singleton
by locked_user sundialsvc4 (Abbot) on Jul 15, 2011 at 21:33 UTC | |
by Anonymous Monk on Jul 16, 2011 at 04:12 UTC | |
by Khen1950fx (Canon) on Jul 16, 2011 at 06:43 UTC | |
by locked_user sundialsvc4 (Abbot) on Jul 16, 2011 at 12:03 UTC | |
by Anonymous Monk on Jul 16, 2011 at 18:11 UTC | |
|
Re: Module vs Singleton
by Anonymous Monk on Jul 15, 2011 at 17:10 UTC | |
by Your Mother (Archbishop) on Jul 15, 2011 at 21:26 UTC |