DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Fix::rename.3pm.en
Catmandu::Fix::rename(3pm) User Contributed Perl Documentation Catmandu::Fix::rename(3pm)

Catmandu::Fix::rename - rename fields with a regex

   # dotted => {'ns.foo' => 'val', list => {'ns.bar' => 'val'}}
   rename(dotted, '\.', '-')
   # dotted => {'ns-foo' => 'val', list => {'ns-bar' => 'val'}}

Catmandu::Fix

2023-03-03 perl v5.36.0