Man pages sections > man3 > Catmandu::Fix::retain

Catmandu::Fix::retain - delete everything except the paths given

Catmandu::Fix::retain(3pm) User Contributed Perl Documentation Catmandu::Fix::retain(3pm)

NAME

Catmandu::Fix::retain - delete everything except the paths given

SYNOPSIS

   # Keep the field _id , name , title
   retain(_id , name, title)
   # Delete everything except foo.bar 
   #   {bar => { x => 1} , foo => {bar => 1, y => 2}}
   # to
   #   {foo => {bar => 1}}
   retain(foo.bar)

SEE ALSO

Catmandu::Fix
2017-10-01 perl v5.26.0