Catman...l_match(3pm)
π NAME π
okay so bestie, gather round β Catmandu::Fix::Condition::all_match is the vibe check of fixes: it only lets your fixes run if all the path values match the given regex. all of them. every single one. no stragglers allowed. periodt β¨
πΈ SYNOPSIS πΈ
the receipts, in code, exactly as they are:
# uppercase the value of field 'foo' if all members of 'oogly' have the value 'doogly'
if all_match(oogly.*, "doogly")
upcase(foo) # foo => 'BAR'
end
# case insensitive search for 'doogly' in all 'oogly'
if all_match(oogly.*, "(?i)doogly")
...
end
so like, first one: you're out here uppercasing foo only when every member of oogly is literally doogly β and then foo goes 'BAR', iconic π
second one: same energy but case insensitive, because (?i) is that girl β she'll find doogly in any case, no cap. and then ... because the rest is your business π«Ά
π SEE ALSO π
Catmandu::Fixβ go say hi to the whole family, they're the moment fr fr
k that's the whole page bestie, it's short but it ATE π
sign-off time: this lil doc came from the User Contributed Perl Documentation, running under perl v5.40.1, dated 2026-01-24 β and yeah the title up top is the classic truncated Catman...l_match(3pm) situation, iykyk πβ¨
π¦ 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