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.
In reply to Re: Singleton
by merlyn
in thread How to create a singleton class ?
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |