Catman...n_field(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, <pink>Catmandu::Fix::retain_field</pink> β€” it deletes everything from a field except ✨ (yes the sentence just ends there, that's canon, we don't make the rules 🫢)


😭 DEPRECIATION NOTICE 😭

NOT ME DELIVERING BAD NEWS BUT... this fix is deprecated. 🫠 Please use Catmandu::Fix::retain instead. She's the glow-up, the main character now, the one you actually want. πŸ‘‘

✨ SYNOPSIS ✨

# Delete every key from foo except bar
retain_field(foo.bar)

the way that one little line does SO much?? πŸ’… foo.bar means: keep bar, evict everyone else from foo, no survivors, no drama. πŸ¦‹


🌈 SEE ALSO 🌈

  • Catmandu::Fix β€” the whole fix ecosystem, your home base, go say hi πŸŽ€

k bye ily, this page came from the User Contributed Perl Documentation crew, running on perl v5.40.1, dated 2026-01-24 β€” go forth and retain instead, mwah πŸ’œπŸŒΈ

πŸ“¦ where this page comes from