8.10 Where We Are So Far...

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


or the equivalent:

my $beast = "Class";

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.