I am starting a project which i would like to split into different files for manageability. I am under the impression that files are not simply included, and modules are created and included. If so, i would like to keep all of the files in the same directory.

This is new to me, and i have a few questions.

  1. Is it preferable or to split up files, or does it make no difference?
  2. Is the preferable way to split via modules?
  3. Where are the modules kept?
  4. Do the modules need to be compiled?
  5. Is there a naming scheme for project/related files?

I was searching for these things online, but the words split brings up help about modules that split, and local directory modules bring up how to Make a module. Is there a good name to use for splitting up a perl project into smaller parts?


In reply to Splitting a project into smaller files by chacham

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.