Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: single instance shared with moduleby sauoq (Abbot) |
on Sep 16, 2002 at 21:12 UTC ( [id://198373]=note: print w/replies, xml ) | Need Help?? |
A singleton class makes sense only if you never want more than one instance of the class to exist. If you just need to share an instance, there is nothing stopping you from doing so and allowing multiple instances if you need them. -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|