Don't ask to ask, just ask | |
PerlMonks |
Re^5: Would someone mind helping me understand this Perl OO code?by kennethk (Abbot) |
on Dec 22, 2009 at 16:18 UTC ( [id://813920]=note: print w/replies, xml ) | Need Help?? |
In perlboot, an intro to OO in Perl, it is discussed in The extra parameter of method invocation.
Update: To answer your updated question, the package name or blessed object are passed in a method invocation whenever you use the The Arrow Operator to invoke a package method. So Node->new() will pass "Node" and new(), Node::new() or $code_ref->() would not.
In Section
Seekers of Perl Wisdom
|
|