My first instinct would be to upgrade to a newer version of Perl. Not sure why you say that upgrading is not an option, but I won't

One option for you to do is to use App::FatPacker to "pack your dependencies onto your script file". I personally haven't used this module myself. For packing pure Perl modules needed by your script, there shouldn't be a problem. However, I'm not sure how well this module works with packing XS based modules.

Another option would be to use the pp utility from the PAR::Packer module to bundle your script into a stand-alone executable that can be run on another system - even if that system does not have Perl installed.

Since you're already familiar with Strawberry Perl and you can obviously transfer files to the system in question, here's another route that you could go. Download a portable version of Strawberry Perl. To use a version of portable Strawberry Perl, you just run a batch file that opens a new command prompt that has its environment variables set so that you can use the portable Strawberry Perl in just that command prompt. If you use a system with internet access, you can install any modules that you need to from CPAN. Then you can copy all of that plus your script to the system in question.


In reply to Re: Can't locate .pm in @INC by dasgar
in thread Can't locate .pm in @INC by bbb

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.