Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Object singleton methodby Corion (Patriarch) |
on Apr 22, 2008 at 08:00 UTC ( [id://682104]=note: print w/replies, xml ) | Need Help?? |
I'm not sure what the benefit is of having objects that have the same class but have not all methods. Most likely, you could achieve what you want by overriding ->can and having the method fail for objects that are not the singleton object. Otherwise, you might want to look at classless objects:
In Section
Seekers of Perl Wisdom
|
|