NAME - graphing subroutine cross-reference reports for Perl modules


To graph the subroutine cross-reference of '':

  % perl -MO=Xref,-r > examples/Functional.xref
  % ./ Functional.xref > Functional.png
  % gqview Functional.png
  # (or your favourite image viewer)

DESCRIPTION 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 <>


Copyright (C) 2000, Leon Brocard

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.