Catman...exists(3pm)
π NAME π
Catmandu::Fix::Condition::exists β bestie, this is the little fix condition that checks if a path exists, and it only runs your fixes when it does. That's it. That's the whole vibe. iconic, honestly β¨
πΈ SYNOPSIS πΈ
okay so here's the tea, fr fr β you wrap your fixes in an if exists(...) and they only go off when that path is actually there:
# uppercase the value of field 'foo' if the field 'oogly' exists
if exists(oogly)
upcase(foo) # foo => 'BAR'
end
# inverted
unless exists(oogly)
upcase(foo) # foo => 'bar'
end
and yes bestie, you can flip it with unless when you want the opposite energy π
π SEE ALSO π
Catmandu::Fixβ go read this one too, it's the main character π«Ά
and that's a wrap, my love π this little page came to you via perl v5.40.1, dated 2026-01-24 β go forth and conditionally fix things, no cap πβ¨
π¦ 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