Catman...is_true(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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