NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Class::C3 is your friend... (Score:1)
There is a script in the Class::C3 distribution that does this and much more.
My tweaked version of it is here:
http://github.com/melo/scripts/blob/master/bin/x-perl-c3-visualize [github.com]
The original is here:
http://cpansearch.perl.org/src/FLORA/Class-C3-0.20/util/visualize_c3.pl [perl.org]
Best regards,
life is short
Reply to This
Re: (Score:2)
Sorry, I don't think I was clear about my intent. There are a number of alternatives for doing this, but the name of this project, Class::Sniff, suggests my purpose: searching out code smells in OO code. To this end, merely collecting the hierarchy is the first bit. I also have to look for inappropriate inheritance, multiple inheritance, which methods are overridden where, etc. As a result, I'll eventually need to collect a lot more state about everything and provide analysis tools.