July 2011
Intermediate to advanced
104 pages
2h 14m
English
An object is a referent that knows which class it belongs to.
A class is a package that provides methods. If a package fails to provide a method, the base classes as listed in @ISA are searched, depth first.
A method is a subroutine that expects an invocant (an object reference or, for static methods, a package name) as the first argument.
, classname ]Turns the referent ref into an object in classname (default is the current package). Returns the reference.
( parameters ) ]Calls the named method.
Provides an alternative way of calling a method, using the sometimes ambiguous indirect object syntax.
See also ref (page 63), and the next section.
perlobj, perlboot, perltoot, perltooc.