in reply to Module Subs and Methods
UPDATE: or this (more) complete script:perl -MDevel::Symdump -le'eval"require $ARGV[0]";print for Devel::Symd +ump->new($ARGV[0])->functions' HTML::Parser
Don't forget that some CPAN author's follow the convention of prepending underscores to 'private' subs - you can filter those out easily with grep:use strict; use warnings; use Devel::Symdump; my $class = shift || die "need module name"; eval "require $class"; my $obj = Devel::Symdump->new($class); print $_,$/ for $obj->functions;
should do the trick.print $_,$/ for grep ! /::_/, $obj->functions;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|