At 12:01 PM 3/22/02 -0800, I wrote: >At 04:43 PM 3/22/02 +0100, Patrice Boisieau wrote: >>Hello >> >>Does it exist a CPAN module that computes the exhaustive graph of the >>subroutines of a script ? > >It is not possible in general to tell such things from a Perl program >because it could always call a subroutine that is generated at runtime. > >I was, however, able to find >http://groups.google.com/groups?oi=djq&selm=an_578898494 >which should aid in static analysis. > >(Dynamic analysis should be possible with something that uses DB hooks >like DProf. But I couldn't find any Devel:: module that does that. Am I >missing something? I was sure someone would have done this.) Weelll... there is Devel::TraceCalls (http://search.cpan.org/search?dist=Devel-TraceCalls). But something tells me you're not going to be very happy with that. You may be happier with Devel::TraceFuncs (http://search.cpan.org/search?dist=traceFunc). Of course, being dynamic, you'll get annoying output on recursive function calls. Disclaimer: I haven't used this module, have no idea how easy it is etc. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.comThread Previous