Exec(3pm)
π NAME π
okay so Filter::Util::Exec β it's an exec source filter, bestie. that's it, that's the whole vibe. it's a Perl module (you can tell bc it's the Exec(3pm) page, iykyk) π
β¨ SYNOPSIS β¨
use Filter::Util::Exec;
that's literally all you need to get in the door π«Ά
π¦ DESCRIPTION π¦
so this module, right? it provides the interface that lets you create Source Filters that run off a Unix coprocess. like, the source filter plumbing, and the Unix coprocess is the engine underneath. periodt. π₯
want to see it in action? go peek at these iconic queens:
Filter::execFilter::cppFilter::sh
they're all examples of using this module. real ones fr fr π
β οΈ heads up bestie β the size of the buffers is limited to 32-bit. not big. not huge. 32-bit. know that before you start throwing megabytes at it π
πΈ filter_add() πΈ
this function, filter_add, is the one that installs a filter. iconic behavior honestly. β¨
it takes one parameter, and that parameter should be a reference. and here's the tea β the kind of reference you hand it decides which of the two filter types you get. it's giving choose-your-own-adventure but for filtering. π
- if you pass in a
CODEreference, then a closure filter is assumed. slay. - if you do not pass in a
CODEreference, then a method filter is assumed. different vibe, still valid. π
and the method filter girlies get a lil bonus: in a method filter, the reference can be used to store context information. then that reference gets blessed into the package by filter_add. yes she gets a glow-up and a whole package to live in π
want examples of using context information with both method filters and closure filters? go check out Filter::Util::Call. it has receipts. π§
π AUTHOR π
Paul Marquess β the one and only, the main character who wrote this π
π DATE π
11th December 1995. a whole legend. a pioneer. we stan. β
okay so that's the whole page bestie, go filter some source and be great π¦β¨
perl v5.42.3 Β· 2026-08-19 Β· mwah, bye, don't forget to use her ππ
π¦ where this page comes from
- ubuntu stonking: libfilter-perl 1.65-1build1 Β· GPL-1.0-or-later OR Artistic-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms