Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You don't have to use eval to get the keys of the package's symbol table, just do
Unfortunately, there's no way to differentiate between methods and regular subroutines, and as moritz pointed out, that won't find inherited methods which exist in different packages. Moose's metaclass facilities are really great, but naturally they only work for objects that are built with Moose. There is Class::Inspector, which has a reasonably good function to search a class's @ISA tree and get a list of every possible inherited method. In reply to Re: Listing the functions of a package / methods of an object
by friedo
|
|