UNIVERSAL::derived_classes - Returns derived classes of a class
require UNIVERSAL::derived_classes; package A; package B; @ISA = qw( A ); package C; @ISA = qw( B ); package main; my @derived_classes = A->derived_classes; # B, C my @derived_classes_reversed = A->derived_classes_reversed; # C, B
UNIVERSAL::derived_classes provides the following methods:
is the flag to reverse classes
When used as a class method (
derived_classes returns derived classes of the
When used as an instance method (
derived_classes returns derived classes of a class where
$obj is blessed.
REVERSED flag is true then reversed derived classes are returned.
derived_classes_reversed is same as
Yuji Tamashiro, <email@example.com>
Copyright (C) 2007 by Yuji Tamashiro
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.