Catman..._array(3pm)
π Catmandu::Fix::Condition::is_array
okay bestie, come closer π«Ά this one's a Perl fix condition, it lives in section 3pm, and yeah it's a user-contributed doc so it's basically us writing it for us, iykyk β¨
πΈ NAME
Catmandu::Fix::Condition::is_array β it only runs your fixes if all the values sitting at that path are arrays. that's the whole vibe check. π
β¨ SYNOPSIS
if is_array(data.*.list)
...
end
like. look at her. the if wraps your fixes, is_array peeks at every value matched by data.*.list, and the ... is you doing whatever main character fix stuff you want in there. end closes it out, periodt. π
ngl the gate is strict on purpose: it's all path values, not "some of them", not "the first one". every single one has to be an array or the fixes inside just don't fire. no cap. π₯
π¦ SEE ALSO
Catmandu::Fixβ the whole fix language lives here, go read it, it's iconic π
mwah, that's the page π β this lil doc was served up by perl v5.40.1, dated 2026-01-24, and it's the Catmandu::Fix::Condition::is_array page from section 3pm. stan. π
π¦ 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