in reply to Prettified Perl Inheritance

See also GraphViz::ISA and pmload in pmtools (basic).

Diamond inheritence will get tree-ified won't it?

Also, use/require already remembers loaded modules in %INC:

$ perl -MDBI -le '$,="\n"; print %INC' warnings/register.pm /usr/share/perl/5.8.0/warnings/register.pm Carp.pm /usr/share/perl/5.8.0/Carp.pm Exporter/Heavy.pm /usr/share/perl/5.8.0/Exporter/Heavy.pm strict.pm /usr/share/perl/5.8.0/strict.pm continues ...

Replies are listed 'Best First'.
Re: Re: Prettified Perl Inheritance
by Kageneko (Scribe) on Aug 04, 2003 at 04:52 UTC

    Hmm, I haven't done any testing with diamond inheritance. I know that I setup the code to not follow an inheritance tree more than once, so it wouldn't get into infinite loops.

    The reason I didn't use %INC for testing whether a module was loaded was because I wanted to record which module had loaded it first (well, in the tree-scheme of things :) and didn't really care where the file existed.

    Thanks for the tip (and thanks to PodMaster for his) regarding the graphing modules.