There is a perl script out on the net that will look at all the code that you include in your script and builds a single file out of them all. This one file can then be distributed without any additional files. I strongly doubt it would work on anything that requires actual compiling and linking (like the DBI modules.) While not the best solution to your situation it would make distributing your code easier. You could continue to use the modules of your choice while developing, and just generate the single perl file during your make process.

I think I read about the script in an old perl journal, I'll try looking for it tonight...

Another option, and def not my choice, would be to distribute perl with your code. Users could choose between a full install or expert install. The expert install would let the user use their own perl installation, while the full install would install a base version of perl with only the required modules. This private version would only be used to run your program. This would take a good deal of work for you to setup initially, but would allow you to control exactly what they have. I think that win32 users would be the only ones to accept this, they already do with ActiveState and some nt web servers include their own also.

This also opens up the problem of maintaining several different compiles for several different platforms. Not fun.

The mailman web email script was distributed as a windows file instead of a unix file and was always a pain in the ass to install on our server. Please don't do anything quite that silly.


In reply to RE: modules out of the box by elwarren
in thread modules out of the box by knight

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.