Catman...x::sum(3pm)

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

✨ 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