Thanks for all the input so far. I thought about using modules, but I'd need a separate module for each, and so thought that that wouldn't be any more efficient. The file names of the secondary scripts would be stored in a database, with different ones being called on each run of the main script, based on user input. Should I still do that with modules?
Adding each as a different sub in the same module sounds like far more of a maintenance nightmare long term, as a new file/database entry will likely be added every several months. Tell me if your experience differs, but adding a new file and database entry sounds more maintainable in the long run.
Edit: To explain further, each of the called scripts is associated with a single PDF, filling it out according to info in the database. Each PDF is different enough to need its own logic on what goes where, thus its own script. If this is a dumb way of doing this, I would LOVE a better suggestion, as I don't really like this solution, but know it will work.

In reply to Re: Best way to call another perl file by derekstucki
in thread Best way to call another perl file by derekstucki

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.