Catman...n_field(3pm)
π 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
- 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