Catman...e_field(3pm)
π NAME π
okay bestie, gather round, because this is Catmandu::Fix::move_field(3pm) β the manual page for Catmandu::Fix::move_field, and its whole entire job is moving a field to another place in the data structure. that's it. that's the gig. she relocates your data and she does it flawlessly π
β¨ SYNOPSIS β¨
ok so here's the vibe in code form, no notes:
# Move single fields
# Move 'foo.bar' to 'bar.foo'
move_field(foo.bar, bar.foo)
# Move multipe fields
# Data:
# a:
# b: test1
# c: test2
move_field(a,z) # -> Move all the 'a' to 'z'
# z:
# b: test1
# c: test2
# Data:
# a:
# b: test1
# c: test2
move_field(a,.) # -> Move the fields 'b' and 'c' to the root
# b: test1
# c: test2
let me translate because this is actually so satisfying:
- moving one field is giving "relocation era" β
move_field(foo.bar, bar.foo)takesfoo.barand drops it atbar.foo, iconic, no drama π¦ - moving a whole lil group is where it gets juicy β if you've got a structure where
aholdsb: test1andc: test2, thenmove_field(a,z)moves all theaover intoz, so nowzis holdingb: test1andc: test2. the whole squad moved together, periodt π - and then the main character move:
move_field(a,.)takes the fieldsbandcand yeets them to the root. so instead of being tucked insidea, they're just out here living their truth atb: test1andc: test2. the way that.means root?? iykyk ππ
heads up babes β the original page literally spells it multipe in that comment, and i am not fixing it. we preserve the artifacts here. it's part of her charm π«Ά
π SEE ALSO π
go read Catmandu::Fix next, bestie β that's the whole universe this little fix lives in. she's not out here alone, she's got a whole ecosystem π
and that's the whole page, fr fr πβ¨
this absolute baddie of a doc came to you from the User Contributed Perl Documentation, running on perl v5.40.1, dated 2026-01-24 β so she's fresh, she's current, she's serving πΈπ
go move some fields, you're gonna eat π₯π
π¦ 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