This may be the easiest question of the month, but I can't find an answer anywhere. I have a really large module called ABC.pm. Since many people work on this module simultaneously and since the code in the module can be neatly organized into sections I have ABC.pm with
require "ABC/stage1.pl"; require "ABC/stage2.pl"; require "ABC/stage3.pl";
and so on. However each library file has a header of package ABC, not package ABC::stage# since I bless an object to the ABC class and use it for all the stages.

This works fine, however it fails Perl::Critic Modules::RequireFilenameMatchesPackage and Modules::RequireBarewordIncludes checks.

Is there an acceptable method to divide the code of one large module across several files without strictly following the filename-strictly-matches-the-packagename standards? I don't mind using use or require or any filename extension. Or should I just not worry about these warnings? thanks


In reply to Acceptable way to divide a long module into multiple files by somekindafreak

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.