Catman...ollapse(3pm)

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

πŸ’– NAME πŸ’–

Catmandu::Fix::collapse β€” the glow-up where your messy nested data becomes one flat hash, using the TT2 dot convention. ✨

Also, hi bestie, this is the page for Catman...ollapse(3pm) (that's the cute truncated way the manual shows it β€” the real one is Catmandu::Fix::collapse, section 3pm, and yes it's a Perl thing πŸͺ).


🌸 SYNOPSIS 🌸

okay so here's the vibe β€” you call it, and the data flattens:

# Collapse the data into a flat hash
collapse()

# Collaps the data into a flat hash with '-' as path seperator
collapse(-sep => '-')

Note: those comments are copied exactly, typos and all β€” I'm not touching them, they're part of the artifact πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix β€” go say hi to the parent, it's the whole reason this exists 🫢

so that's the whole page, bestie β€” short, sweet, does one thing and does it iconically. ✨

Sign-off time: this page lives in perl v5.40.1, dated 2026-01-24, and it's filed under Catman...ollapse(3pm). bye bye, go flatten something πŸ’œπŸŽ€

πŸ“¦ where this page comes from