The stupid question is the question not asked | |
PerlMonks |
Re: Identify subs and their sourceby Khen1950fx (Canon) |
on May 25, 2011 at 07:30 UTC ( [id://906609]=note: print w/replies, xml ) | Need Help?? |
Always search PerlMonks. I did a brief search and found: Tabulate sub defs, sub calls in Perl code by graff. It'll work on a script, a module, modules, a directory, or directories. It uses B::Deparse, so I think that it meets your constraints. Here's the link for scan-source.perl. A cool little tool that I use to analyse subs is Sub::Mutate. It can tell you if a sub is a method, function, XSUB, STANDALONE, etc. For example, I took the Dumper sub from Data::Dumper:
In Section
Seekers of Perl Wisdom
|
|