Catman..._false(3pm)

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

πŸŽ€ NAME πŸŽ€

okay bestie, meet Catmandu::Fix::Condition::is_false πŸ’– β€” she's the condition that only lets your fixes run when all the path values are the boolean false, 0, or "false". that's it, that's her whole job, and she's slaying it πŸ’…


✨ SYNOPSIS ✨

if is_false(data.*.has_error)
    ...
end

# strict only matches a real bool, not 0 or "0" or "false"
if is_false(data.*.has_error, strict: 1)
    ...
end

so like, no cap, that first one vibes with anything falsy-ish (the real boolean false, a 0, or the string "false" β€” all of them pass the vibe check 🌸).

then the second one? she's in her strict era πŸ‘‘ with strict: 1, and strict means strict, fr fr β€” she only matches a real bool, so 0, "0" and "false" can absolutely NOT sneak in 😭 the audacity of them to even try.

lowkey important: this is a condition, so it gates whether the fixes inside it run at all. no match, no fixes, periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix β€” go hang out with the main character, she explains the whole fix situation πŸ’œ

k bye bestie, go write some iconic fixes 🫢

this lil page came from the User Contributed Perl Documentation, living its life as Catman..._false(3pm) in the perl v5.40.1 universe, dated 2026-01-24 ⭐

πŸ“¦ where this page comes from