|Syntactic Confectionery Delight|
Re^2: OOP: ->Coderef for calling Private Methodsby LanX (Chancellor)
|on Dec 13, 2008 at 18:30 UTC||Need Help??|
> I do not see any reason for the difference.
I agree there is no logical reason for extra behaviour...
> And the docs are clear and complete here as it seems to me.
Sorry, I disagree! Till now, I couldn't find any other perldoc describing this feature , and perlop is just a condensed quick reference. IMHO Perl has to many special cases to rely on just 3 words in a quickref.
I think it's quite unknown, taking into consideration that most hacker prefere the _underscore_private_method() convention instead.
For me it looks like the documentation should be improved!
UPDATE: And what really makes my brain stumble, what is the expected behaviour when i call $obj->$code_ref() and code_ref doesn't point to a method (of the blessed package).
Am I supposed to run experiments to find it out?
Please can anyone give me a link to any documentation!