Catman...latten(3pm)
β¨ 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
- 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