Given a base class and a list of classes derived from it:
package base
{
# ...
}
package foo
{
our @ISA = 'base';
# ...
}
package bar
{
our @ISA = 'base';
# ...
}
Is there a runtime way to get a list of classes which have base
as parent?
I know I could easily work around this by adding their names to a list manually, but I was wondering if base
itself could tell me who inherited from it.