Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: pp bleach main script and modules

by LanX (Saint)
on May 24, 2018 at 19:07 UTC ( [id://1215169]=note: print w/replies, xml ) Need Help??


in reply to pp bleach main script and modules

What about -F, --modfilter=FILTER[=REGEX] ?

from pp

-f, --filter=FILTER

Filter source script(s) with a PAR::Filter subclass. You may specify multiple such filters.

If you wish to hide the source code from casual prying, this will do:

% pp -f Bleach source.pl

If you are more serious about hiding your source code, you should have a look at Steve Hay'sPAR::Filter::Crypto module. Make sure you understand the Filter::Crypto caveats!

...

-F, --modfilter=FILTER[=REGEX]

Filter included perl module(s) with a PAR::Filter subclass. You may specify multiple such filters.

By default, the PodStrip filter is applied. In case that causes trouble, you can turn this off by setting the environment variable PAR_VERBATIM to 1.

Since PAR 0.958, you can use an optional regular expression (REGEX above) to select the files in the archive which should be filtered. Example:

pp -o foo.exe -F Bleach=warnings\.pm$ foo.pl

This creates a binary executable foo.exe from foo.pl packaging all files as usual except for files ending inwarnings.pm which are filtered with PAR::Filter::Bleach

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: pp bleach main script and modules
by Anonymous Monk on May 25, 2018 at 07:53 UTC

    Cheers, it works.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1215169]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found