Basic HTML version of Foils prepared Sept 20 97

Foil 39 Inheritance in Perl5

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


1 This is implemented "by hand" using @ISA which is defined for every package and contains list of packages to be searched for unsatisfied externals
2 package Fred;
3 require Exporter; # Make package Exporter available to Fred
4 @ISA = qw(Exporter); # Exporter is to be searched for unsatisfied externals
5 # See Exporter manual page for more details
6 Of course AUTOLOAD mechanism kicks in as technique of last resort if cannot find a subroutine anywhere else

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 5 1998