good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
(DUP) Re: How to find all the available functions in a file or methods in a module?by ikegami (Patriarch) |
on Nov 11, 2008 at 07:58 UTC ( [id://722800]=note: print w/replies, xml ) | Need Help?? |
This node is duplicate. Please ignore. Have you searched CPAN for modules that walk the symbol table? The following will find all subs currently existing in a package. It can be expanded to walk the entire symbol table. It can be expanded to look at @ISA. There's no way to know whether the subs it finds are methods or not.
Interesting tidbit: 'Foo::Bar' can be written as Foo::Bar::.
Assignment of a sub ref to a glob.
In Section
Seekers of Perl Wisdom
|
|