The company at which I work, being the funny place that it is, still doesn't have Perl on the "accepted language" list.

I wrote some project code to do MIME-attachment bulk emailing (legitimate bulk email to clients, not spam). Yesterday, the Project Manager asked if the tool used modules, and of course I said "Yes." I shouldn't have. He then asked if I could somehow include the module code in the script, since getting a production waiver (imagine that) to put one Perl script in production would be easier than getting three, one for the script, and one each for the modules I am using (I think that is all I need; the rest are already loaded - 5.005_02).

I tried just copying the module code into the script, but that doesn't seem to work. I looked through everything I could find in Super Search, but didn't find anything I thought could help.

I know I am probably opening a can of worms by asking about this, but is there any way I can technically do this, whether it is right or wrong to do so? As far as my use statements, I only have Text::Autoformat and MIME::Lite.

D a d d i o


In reply to Copying complete module code into a script by Daddio

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.