in reply to How can I make one class extend another one?
From then on, for any method called on an instance of vroom that isn't defined immediately in the class, Perl will search the classes named in @vroom::ISA for those methods.package vroom; @ISA = qw ( PerlMonk );
That is, PerlMonk::dispense_wisdom() is available via $vroom->dispense_wisdom() even if there is no vroom::dispense_wisdom().
Note that the @ISA array can contain lots of parent classes. Note also that they are searched left-to-right, depth first.
|
|---|