In my working directory I have a script "a.pl" that looks like this:
Running it produces "I have: 1.04".BEGIN { unshift @INC, "." } use strict; print "I have: $strict::VERSION\n";
Now I make a copy of strict.pm to my local directory and change the version number to 3.45 like this:
Running a.pl now produces "I have 3.45" - so far so good.cp c:/strawberry/perl/lib/strict.pm . perl -i.old -pe 's/VERSION = .*/VERSION = "3.45";/' strict.pm
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).perl C:/strawberry/perl/bin/pp -o a.exe -x a.pl a.exe
However --lib seems to work fine:
Now I get "I have: 3.45" as desired.perl C:/strawberry/perl/bin/pp -o a.exe --lib=. a.pl a.exe
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |