FloydATC has asked for the wisdom of the Perl Monks concerning the following question:
Given a package name, is it possible to somehow get a list of all the subs that exist within that package?
I know I can check for a given sub like this
$sub = $obj->can("print");
but what I'd like is something like
@subnames = $obj->can(); # Just to illustrate, does not work
or even
@subnames = Some::Class::can(); # Just to illustrate, does not work
--
Time flies when you don't know what you're doing
Back to
Seekers of Perl Wisdom