Catman...x::sum(3pm)
β¨ NAME β¨
Catmandu::Fix::sum β bestie, this one swaps out the value of an array field and drops the sum of its elements in its place. That's it. That's the whole job. It's giving calculator energy and honestly? We love a simple queen. π
Oh and btw this page lives in the 3pm section of the manual β User Contributed Perl Documentation, the lil corner of the docs where the Perl modules hang out. π
πΈ SYNOPSIS πΈ
# e.g. numbers => [2, 3]
sum(numbers)
# numbers => 5
So like. You hand it numbers which is sitting there being an array like [2, 3], and sum(numbers) does the math and now numbers is justβ¦ 5. Not an array. Not a list. Just the number. The glow-up is real. β¨
π¦ SEE ALSO π¦
Catmandu::Fixβ the mothership, the main character, the whole reason this lil guy gets to exist. Go read that one too, iykyk. π
okay that's genuinely the entire page, it's a short one and it ate π
This was Catmandu::Fix::sum, pulled from perl v5.40.1 and dated 2026-01-24. Stay summy, bestie πβ¨π«Ά
π¦ 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