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.
In reply to Re^5: Would someone mind helping me understand this Perl OO code?
by ikegami
in thread Would someone mind helping me understand this Perl OO code?
by romandas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |