I am rather new to both Windows and PAR, so maybe I don't really understand what you are trying to achieve, but here are my experiments with Strawberry 5.10.1 on Windows XP (with cygwin):

In my working directory I have a script "a.pl" that looks like this:

BEGIN { unshift @INC, "." } use strict; print "I have: $strict::VERSION\n";
Running it produces "I have: 1.04".

Now I make a copy of strict.pm to my local directory and change the version number to 3.45 like this:

cp c:/strawberry/perl/lib/strict.pm . perl -i.old -pe 's/VERSION = .*/VERSION = "3.45";/' strict.pm
Running a.pl now produces "I have 3.45" - so far so good.
Now I want to build an exe that contains my modified strict.pm but -x does not do the trick:
perl C:/strawberry/perl/bin/pp -o a.exe -x a.pl a.exe
This produces "I have: 1.04" so pp packed the core-lib with surprises me as I thought -x (running the script) would detect that we are picking up our modified strict.pm - so my impression is that -x does not work (or I don't understand what it should do).

However --lib seems to work fine:

perl C:/strawberry/perl/bin/pp -o a.exe --lib=. a.pl a.exe
Now I get "I have: 3.45" as desired.

In reply to Re: strawberry par::packer, @INC and the difference between -c and -x by morgon
in thread strawberry par::packer, @INC and the difference between -c and -x by Boldra

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.