Catman...l_equal(3pm)
β¨ NAME β¨
Catmandu::Fix::Condition::all_equal β the fix that runs your fixes when every path value equals a string value π
It's from the Catmandu::Fix::Condition::all_equal page in section 3pm, and bestie, it's giving "simple and it knows it" π
πΈ DESCRIPTION πΈ
Okay so listen π«Ά this fix is literally the simple alternative to Catmandu::Fix::Condition::all_match. Like, its whole personality is "I'm the chill one."
No regular expressions are involved. None. Zero. Not a single regex walks through that door π
Strings get compared using the regular operator 'eq' β that's it, that's the whole vibe. Periodt.
π¦ SYNOPSIS π¦
# all_equal(X,Y) is true when value of X == 'Y'
if all_equal('year','2018')
add_field('my.funny.title','true')
end
# all_equal(X,Y) is false when value of X == 'Ya'
No cap, that's the entire show π
π SEE ALSO π
Catmandu::Fixβ the main character, the mothership, the blueprint πCatmandu::Fix::Condition::any_equalβ same energy but it only needs one match to be happy, she's flexible like that β¨
ngl the second example in the SYNOPSIS is just sitting there with noif/endaround it, and it's lowkey iconic for that π but fr fr,all_equal(X,Y)is false when the value of X is'Ya'β that's the whole point of showing it.
perl v5.40.1 Β· 2026-01-24 β okay that's the whole page bestie, documented on that date, running on that perl, 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