Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Object singleton method

by Corion (Patriarch)
on Apr 22, 2008 at 08:00 UTC ( [id://682104]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Object singleton method
in thread Object singleton method

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:

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found