R. Joseph Newton wrote:
> ...
> Does any call to a class method then have the reference to the object,
> or the object itself, as the first parameter.

An "object" is a reference that has been blessed into a class. In a method
call, the reference is passed as the first element in @_.

So, if $obj is a reference blessed into class "MyClass", then

   $ret = $obj->Method($arg);
   MyClass::Method($obj, $arg);

are similar in that both result in two items being passed to Class::Method.
However, the second call does not do inheritance, while the first does.

All this is detailed in perldoc perlobj.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to