Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: coderef to an object method

by Anonymous Monk
on Aug 31, 2018 at 17:57 UTC ( [id://1221468]=note: print w/replies, xml ) Need Help??


in reply to Re^2: coderef to an object method
in thread coderef to an object method

Well, if you call a CODEREF (eg. as returned by ->can()) as object method without passing the objet itself as first argument, you'll lose the object context. So, you'll not be able to access the object properties, nor call any of these methods...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found