For a package "Hubba", the symbol table can be found in %Hubba:: (the keys of this hash are the symbols) and the subroutines are in the CODE-slot.
So you find all subs defined in a package $package you can simply grep for all symbols that have a defined CODE-slot like this ugly hack:
my @sub_names = grep { defined *{"${package}::$_"}{CODE} } keys %{"${p +ackage}::"}
In reply to Re: Package introspection
by morgon
in thread Package introspection
by FloydATC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |