in reply to How to create a singleton class ?
A package is already a singleton. Just make all your methods be class methods, and return $class instead of trying to bless something.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|