I have a config class for my Web application, and for a number of reasons, I think it would be useful to make it a singleton class. Unfortunately, it's already set up, has a standard interface and inherits from Class::Accessor. I know about Class::Singleton, but it doesn't look like there would be any easy way to take an existing class and make it a singleton class with that.
Short of encapsulating my current config object in a new singleton class, can anyone suggest a way to accomplish this?
perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'
In reply to Making an Existing Class a Singleton by agianni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |