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?