| 1 | #!/usr/local/bin/perl -w | ||
| 2 | use strict; | ||
| 3 | use CatalystX::Dispatcher::AsGraph; | ||
| 4 | |||
| 5 | my $graph = CatalystX::Dispatcher::AsGraph->new_with_options(); | ||
| 6 | $graph->run; | ||
| 7 | |||
| 8 | if ( open( my $png, '|-', 'dot -Tpng -o ' . $graph->output ) ) { | ||
| 9 | print $png $graph->graph->as_graphviz; | ||
| 10 | close($png); | ||
| 11 | } |