...I indeed need some wisdom here

I have a perl script (that calls other external perl scripts) that references all necessary external modules in multiple directories such as perlModules/, LibXML/, etc...

...so in this case, I can execute the main script which calls to the external scripts and referencing the module locations on any perl version and; it works flawlessly. Tested on 5.10 and 5.16

Because the number of referenced directories and script calls from the main perl script (I have no control over consolidating the number of scripts and directories by the way), I would like to bundle this into a single (or 2 file set) executable so that it can be executed across multiple perl versions like I can currently do if it was not bundled up...

NOTE: The machines I will be dealing with are tightly controlled so there isn't a whole lot I can do to ensure a CPAN/YUM modules can be installed. (1) oracle linux 6.4 with perl 5.10 and (2) oracle linux 7.2 with perl 5.16

I have tried:

PAR, but the target machine(s) do not have PAR installed. Creating the bundle from par.pl and zip, using parl or even executing the par archive using: perl -MPAR=./local.par <script_name> causes issues (which can be discussed later). I DO think this is the best option and am willing to push forward in ensuring a module gets installed if necessary but looking for a simple solution which escapes me at this point

PAR::Packer, but it diligently tries to install the bootstrap modules (thanks Scan::Deps) which causes cross platform issues

Sorry that some of the details are vague here so all I am looking for at this point is to be pointed in the right direction on how to implement using a free packaging solution. Thanks in advance!


In reply to stand-alone perl script(s) by ddelisle

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.