Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 reply to Re^4: Would someone mind helping me understand this Perl OO code?
in thread Would someone mind helping me understand this Perl OO code?

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-10 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found