Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Would someone mind helping me understand this Perl OO code?

by ikegami (Patriarch)
on Dec 22, 2009 at 16:18 UTC ( [id://813921]=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?

It's the first thing perlobj says about methods

A Method is Simply a Subroutine

Unlike say C++, Perl doesn't provide any special syntax for method definition. (It does provide a little syntax for method invocation though. More on that later.) A method expects its first argument to be the object (reference) or package (string) it is being invoked on.

  • Comment on Re^5: Would someone mind helping me understand this Perl OO code?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found