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 .



Learning Perl Objects, References & Modules
Learning Perl Objects, References, and Modules
ISBN: 0596004788
EAN: 2147483647
Year: 2003
Pages: 199

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net