There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

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