Catman...ollapse(3pm)
π 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
- 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