Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Making an Existing Class a Singletonby moritz (Cardinal) |
on Jan 23, 2008 at 17:06 UTC ( [id://663837]=note: print w/replies, xml ) | Need Help?? |
If you use perl 5.10 (or want to start thinking in that direction) the variable $singleton is a perfect candidate for a state variable.
In Section
Seekers of Perl Wisdom
|
|