Catman...latten(3pm)

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

✨ Catmandu::Fix::flatten β€” the manual page bestie πŸ’–

okay so hi, you found the manpage for Catmandu::Fix::flatten, and honestly? it's giving one job, done flawlessly. this is a Perl thing (section 3pm, user contributed docs, iykyk), and its whole personality is: flatten a nested array field πŸ¦‹

that's it. that's the vibe. no cap.


🌸 SYNOPSIS 🌸

watch this glow-up happen in real time, bestie:

# {deep => [1, [2, 3], 4, [5, [6, 7]]]}
flatten(deep)
# {deep => [1, 2, 3, 4, 5, 6, 7]}

like… the way that nested mess walked in and walked out as one single flat array? πŸ’… iconic. all the inner arrays got un-nested, order preserved, 1, 2, 3, 4, 5, 6, 7 lined up like a group chat that finally made plans. periodt. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

  • Catmandu::Fix β€” the main character, the parent energy, the whole reason this little fix exists 🫢

πŸ’€ reminder that flatten(deep) works on a field β€” you gotta name the field you want flattened, no guessing bestie.

anyway, that's the whole page, short and sweet like a good iced coffee order β˜•βœ¨

this lil masterpiece is part of perl v5.40.1, dated 2026-01-24 🌈 β€” so go forth, flatten your arrays, and stay hydrated πŸ§šπŸ’œ

πŸ“¦ where this page comes from