|File Search||Catalog||Content Search|
When, then, you call a method in that class ($fishstick->calories), Perl first searches there for that method, but if it's not there, it goes searching in its superclasses, and so on, in a depth-first (or maybe "height-first" is the word) search. In the above example, it'd first look in Food::Fish, then Food, then Matter, then Life::Fungus, then Life, then Chemicals.
This library, Class::ISA, provides functions that return that list -- the list (in order) of names of classes Perl would search to find a method, with no duplicates.
NAME Class::ISA -- report the search path for a class's ISA tree SYNOPSIS # Suppose you go: use Food::Fishstick, and that uses and # inherits from other things, which in turn use and inherit # from other things. And suppose, for sake of brevity of # example, that their ISA tree is the same as: @Food::Fishstick::ISA = qw(Food::Fish Life::Fungus Chemicals); more»
Class::ISA(3pm) User Contributed Perl Documentation Class::ISA(3pm) NAME Class::ISA - report the search path for a class's ISA tree SYNOPSIS # Suppose you go: use Food::Fishstick, and that uses and # inherits from other things, which in turn use and inherit # from other things. And suppose, for sake of brevity of # example, that their ISA tree is th more»
libclass-isa-perl (0.36-3) unstable; urgency=low [ Salvatore Bonaccorso ] * debian/copyright: Replace DEP5 Format-Specification URL from svn.debian.org to anonscm.debian.org URL. [ Dominic Hargreaves ] * Remove use of 'use if' so that this package doesn't need to depend on perl * Don't depend on perl, to break a circular Depends (closes: #649101) -- Dominic Hargreaves <dom@ea more»
Revision history for Perl extension Class::ISA 2009-09-29 Steffen Mueller email@example.com * more»
Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=13 more»