http://www.perlmonks.org?node_id=467804


in reply to Reverse Engineering Perl Using... Perl.

Search CPAN for "calltree". I think there's a program of that name that may do what you want...
--
Ytrew