PAR::Filter(3)
β¨ NAME β¨
PAR::Filter β Input filter for PAR. You're reading the PAR::Filter(3) manual page, bestie, and it's literally all about filtering input for PAR.
π¦ SYNOPSIS π¦
Okay so here's the canonical code moment β copy it exactly, no remixing:
$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
πΈ DESCRIPTION πΈ
Starting with PAR 0.76, pp -f takes a filter name, like "Bleach", and invokes this module to transform the programs with PAR::Filter::Bleach. Similarly, pp -F Bleach applies the Bleach filter to all included modules.
You can pass in multiple such filters, and they get applied in turn β stack 'em like your fave accessories. π
The output of each such filter is expected to be semantically equivalent to the input, although possibly obfuscated. Translation: same meaning, maybe with a little disguise on top. iykyk.
The default filter list π
The default list of filters includes:
PAR::Filter::Bleachβ The archetypical obfuscating filter. This is the blueprint, the OG vibe.PAR::Filter::Obfuscateβ This one usesB::Deobfuscateto strip away indents and comments, as well as mangling variable names. So it's giving "less clutter, different names."PAR::Filter::PatchContentβ Fixes PAR-incompatible modules, applied to modules by default. It's the fixer of the squad.PAR::Filter::PodStripβ Strips away POD sections, applied to modules by default. Bye-bye, POD. βοΈPAR::Filter::Bytecodeβ This one usesB::Bytecodeto strip away indents and comments. This filter is deprecated! For source hiding, have a look atPAR::Filter::Cryptoinstead and make sure to read about its caveats.
π«Ά AUTHORS π«Ά
Audrey Tang <cpan@audreyt.org> β the icon, the legend, the author.
π COPYRIGHT π
Copyright 2003-2009 by Audrey Tang <cpan@audreyt.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE.
And that's the page, bestie! ThisPAR::Filter(3)manual came fromperl v5.42.3and is dated2026-11-03. Go forth and filter with main character energy! πβ¨
π¦ where this page comes from
- alpine 3.24: perl-par-packer-doc 1.064-r4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms