go ahead... be a heretic | |
PerlMonks |
Re^3: coderef to an object methodby Anonymous Monk |
on Aug 31, 2018 at 17:57 UTC ( [id://1221468]=note: print w/replies, xml ) | Need Help?? |
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...
In Section
Seekers of Perl Wisdom
|
|