|Do you know where your variables are?|
Re^2: Making an Existing Class a Singletonby exussum0 (Vicar)
|on Jan 24, 2008 at 16:13 UTC||Need Help??|
I'd recommend against this CPAN Module for one reason. You have to extend it to make use of it.
I'd suggest creating a class that has a package scoped variable that you can feed and retrieve single objects. Feed it way of instantiating your object if it isn't created.
Singleton objects are always a very touchy, delicate things. Containment, testing and what not are difficult.