Catman...is_true(3pm)
β¨ NAME β¨
Catmandu::Fix::Condition::is_true β bestie, this one only runs your fixes if all the values at your path are the boolean true, or 1, or "true". all of them. every single one. no stragglers π
π¦ SYNOPSIS π¦
okay so the vibe is literally just:
if is_true(data.*.has_error)
...
end
# strict only matches a real bool, not 1 or "1" or "true"
if is_true(data.*.has_error, strict: 1)
...
end
see that strict: 1 up there? π that's the picky mode. it's giving "i only want a real bool, not 1 or "1" or "true"" β like it will literally turn those down. periodt.
πΈ SEE ALSO πΈ
Catmandu::Fixβ the whole fam, go say hi π«Ά
mwah, that's the whole page bestie π this was perl v5.40.1, dated 2026-01-24, from the User Contributed Perl Documentation collection β ily, go write some fixes πβ¨π¦
π¦ 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