Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Prettified Perl Inheritance

by bsb (Priest)
on Aug 03, 2003 at 07:01 UTC ( #280406=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Prettified Perl Inheritance
Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://280406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-11-28 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (194 votes), past polls