http://qs321.pair.com?node_id=664060


in reply to Re: Making an Existing Class a Singleton
in thread Making an Existing Class a Singleton

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.