[ Team LiB ] Previous Section Next Section

8.10 Where We Are So Far...

So far, you've seen the method arrow syntax:

Class->method(@args);

or the equivalent:

my $beast = "Class";
$beast->method(@args);

which constructs an argument list of:

("Class", @args)

and attempts to invoke:

Class::method("Class", @args);

However, if Class::method is not found, @Class::ISA is examined (recursively) to locate a package that does indeed contain method, and that subroutine is invoked instead.

Chapter 9 shows how to distinguish the individual animals by giving them associated properties, called instance variables.

    [ Team LiB ] Previous Section Next Section