Perl/Tk saves your favourite tools

Main
back: OO in Perl -1
next: OO in Perl -3

A package defines the methods of an object.

The use base specifies the inheritance relationship. It is the same as:

   require 'Animal::Human';
   use vars '@ISA';
   @ISA = 'Animal::Human';
As you see, the newer syntax is more abstract, and does not conflict with use strict.


 
OO in Perl -1 OO in Perl -3

Created by Mark Overmeer with PPresenter on 11 juli 2001.