05 Sep 2022 10:12:07 UTC
- Distribution: PAR-Packer
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (584 / 5 / 0)
- KwaliteeBus factor: 2
- % Coverage
- License: perl_5
- Perl: v5.8.9
- Activity24 month
- Download (203.29KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Looking for help!The maintainer of this distribution is looking for people to help them improve this module! If you're interested then please contact them via email.
PAR::Filter - Input filter for PAR
$code = 'use strict; print "Hello, World!\n";'; $ref = PAR::Filter->new('PodStrip', 'Bleach')->apply(\$code); print $code; # pod-stripped and obfuscated code print $$ref; # same thing $ref = PAR::Filter->new('PodStrip', 'Bleach')->apply('file.pl'); print $$ref; # same thing, applied to file.pl
Starting with PAR 0.76,
pp -ftakes a filter name, like
Bleach, and invokes this module to transform the programs with PAR::Filter::Bleach. Similarly,
pp -F Bleachapplies the Bleach filter to all included modules.
It is possible to pass in multiple such filters, which are applied in turn.
The output of each such filter is expected be semantically equivalent to the input, although possibly obfuscated.
The default list of filters include:
The archetypical obfuscating filter.
Use B::Deobfuscate to strip away indents and comments, as well as mangling variable names.
Fix PAR-incompatible modules, applied to modules by default.
Strip away POD sections, applied to modules by default.
Audrey Tang <firstname.lastname@example.org>
Copyright 2003-2009 by Audrey Tang <email@example.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.