|Perl: the Markov chain saw|
Understanding module structure and inheritanceby bradcathey (Prior)
|on Jan 30, 2008 at 13:19 UTC||Need Help??|
bradcathey has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to get my head around my directory/file structure and how code gets passed around. To experiment I have laid out the barest of an example that still works, though I normally use CGI::Application and HTML::Template, but other than the instance script, the layout can be pretty much the same.
Questions: 1) General—is this a plausible layout? 2) Specific—why do I have to include use Common.pm in my Contact.pm, when it is using Main as base and Main already includes Common.pm? Other questions: what is inheriting what? if anything? or what could be inherited? and is that even the right word? Thanks in advance.
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot