Catman...:filter(3pm)
π filter(3pm) β the Catmandu::Fix glow-up page π
okay bestie, so this is the manpage for filter, living over in the Catmandu::Fix family of Perl modules, and it's literally one of the most useful little fixes in the whole group chat. User Contributed Perl Documentation, if you were wondering where it came from. π¦
β¨ NAME β¨
Catmandu::Fix::filter β Filter values out of an array based on a regular expression πΈ
Like. It takes your array, looks at every single value in it, and keeps only the ones matching your pattern. Vibe check for array elements, no cap. π
π SYNOPSIS π
Here's the tea, bestie. Say your words array is giving
# words => ["Patrick","Nicolas","Paul","Frank"]
and you run this:
filter(words,'Pa')
boom, now it's:
# words => ["Patrick","Paul"]
only the Pa girlies survived. π«Ά
Now, plot twist β you can also flip it and keep only the values that do NOT match the pattern:
# filter only values that do NOT match the pattern:
filter(words, 'Pa', invert: 1)
# words => ["Nicolas","Frank"]
invert: 1 is giving main character energy fr fr. πβ¨
π SEE ALSO π
Catmandu::Fixβ the whole squad this one belongs to π
and that's the whole page, bestie!! π this was perl v5.40.1, dated 2026-01-24, straight from the Catman...:filter(3pm) corner of the internet. go filter something iconic. mwah. πππ¦
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms