xref.pl - graphing subroutine cross-reference reports for Perl modules
To graph the subroutine cross-reference of 'Functional.pm':
% perl -MO=Xref,-r Functional.pm > examples/Functional.xref % ./xref_aux.pl Functional.xref > Functional.png % gqview Functional.png # (or your favourite image viewer)
xref.pl uses the information gleamed by the B::Xref module to draw a pretty graph showing how subroutines in a module call each other.
For example, the "GraphViz.png" image shows that:
_as_debug can call _attributes
both _parse_dot and _as_generic can call run
Unfortunately, it is quite hard to understand this without looking at the picture, hence this program and the GraphViz module ;-)
A couple of options are available by changing variables in the program. It is expected that these become command-line options for the next version.
Leon Brocard <firstname.lastname@example.org>
Copyright (C) 2000, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.