diff options
author | Nikos Giotis <nikos.giotis@gmail.com> | 2018-02-11 00:12:52 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-02-17 07:42:51 +0700 |
commit | fdc175cd86084c3cddd88ba77b925b61924ce163 (patch) | |
tree | 599945437292660bc84ace21d3a8db502746abe9 /perl/perl-Class-ISA/README | |
parent | 728443068b25b2f6e5592f6cfff0c3ea62bfdc30 (diff) |
perl/perl-Class-ISA: Added (search path for class's ISA tree).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/perl-Class-ISA/README')
-rw-r--r-- | perl/perl-Class-ISA/README | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/perl/perl-Class-ISA/README b/perl/perl-Class-ISA/README new file mode 100644 index 0000000000000..b9bba6c6714da --- /dev/null +++ b/perl/perl-Class-ISA/README @@ -0,0 +1,18 @@ +perl-Class-ISA + +Suppose you have a class (like Food::Fish::Fishstick) that is derived, +via its @ISA, from one or more superclasses (as Food::Fish::Fishstick +is from Food::Fish, Life::Fungus, and Chemicals), and some of those +superclasses may themselves each be derived, via its @ISA, from one +or more superclasses (as above). + +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. |