in reply to Listing the functions of a package / methods of an object
Use Moose or another OO framework that allows easy introspection.
Without having checked, I think your code will fail to list method in superclasses of $object
(And shouldn't $result be really $object?)
In Section
Seekers of Perl Wisdom