Hi Alan,

Alan Dickey wrote:
> I'm using pp on Ubuntu Gutsy to package several related
> apps. I'd like to filter both the main script and the modules
> that I specify with the -M option. However when I enter
> 
> pp -M module1.pm -M module2.pm -F filter -f filter main.pl
> 
> only the modules get filtered. If I leave out -F filter, then
> main.pl gets filtered. Are -f and -F mutually exclusive or
> am I just missing something?

I just tried the following: (Using PAR::Packer 0.977 from CPAN)
- Put in t.pl:
use strict;
use warnings;
print "foo\n";

$ cpan Acme::Bleach
# ...
$ pp -o t -f Bleach -F Bleach -M Math::Symbolic t.pl
$ ./t
foo
$ unzip t

Then:
- script/t.pl is filtered ("bleached")
- lib/strict.pm is filtered
- lib/Math/Symbolic.pm is filtered

AFAICT, main.pl is never filtered. It's really mainly intended as a
starting point for running scripts in a pp'd binary. There are valid
reasons to replace the default implementation, but they're rare. Perhaps
renaming your script from main.pl to something else fixes the issue for you?

Best regards,
Steffen

Reply via email to