Catman...:rename(3pm)
β¨ NAME β¨
Catmandu::Fix::rename β the fix that renames your fields with a regex π
Okay bestie, so this is Catman...:rename(3pm) from the User Contributed Perl Documentation, and it's giving glow-up for your field names. Lowkey iconic.
π SYNOPSIS π
Like, here's the vibe. You feed it a field, a regex to match, and what to swap it for:
# dotted => {'ns.foo' => 'val', list => {'ns.bar' => 'val'}}
rename(dotted, '\.', '-')
# dotted => {'ns-foo' => 'val', list => {'ns-bar' => 'val'}}
So before, your field was all 'ns.foo' and 'ns.bar' (dotted, periodt π), and after running the fix it's 'ns-foo' and 'ns-bar' β the dots got swapped for dashes, no cap. The way that regex just does that? Obsessed. π¦
πΈ SEE ALSO πΈ
Catmandu::Fixβ go read it, bestie, it's the whole family π«Ά
And that's the whole page, fr fr. This gem is part of the Perl v5.40.1 docs, dated 2026-01-24 β so go forth, rename those fields, and slay β¨ππ
π¦ 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