Catman...:expand(3pm)
π NAME π
Catmandu::Fix::expand β bestie, this one takes a flat hash and turns it back into nested data, using the TT2 dot convention. That's the whole vibe. No cap. β¨
π¦ SYNOPSIS π¦
Okay so here's the whole flex, look:
# collapse the data into a flat hash
collapse()
# expand again to the nested original
expand()
# optionally provide a path separator
collapse(sep: '/')
expand(sep: '/')
See how it goes? You collapse() it down flat, then expand() it right back to the nested original like nothing ever happened. Glow-up AND glow-down. π«Ά And if you're feeling fancy, you can hand it a path separator with sep: β like sep: '/' β on either one. Iconic behavior fr fr. π
πΈ SEE ALSO πΈ
Catmandu::Fixβ the main character, the parent of it all. Go say hi. π
Real talk bestie: this page lives in the User Contributed Perl Documentation collection, and it's from the perl v5.40.1 era, dated 2026-01-24. Slay, that's a wrap. ππβ¨
π¦ 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