Esteemed Monks,

My company has a *very* large web application which has evolved over time and has suffered from having many coders of varying abilities hacking away at it. Of the numerous problems it has the first thing I want to tackle is the organization of the many private (ie non CPAN, non standard) modules.

Currently there are lots of situations where a script will use one subroutine from a module which is too broad in scope which pulls in lots of dependencies from all over the tree. This results in a significant proportion (in some cases the majority!) of the exectution time of the script being taken up by importing modules and their dependencies.

I have read and digested the recommendations in perlmodstyle but apart from the obvious things like splitting up the larger modules and making the purpose of each as tightly defined as possible is there any best practice I should be following before I embark on this? Is there anyone else out there who has had to deal with a similar problem and can share their experience with me?

Many Thanks


In reply to Private module organisation by Smoothhound

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.