Catmandu
Catmandu copied to clipboard
Field selection with recursive path operator "..."
How about a path operator ...
that selects of fields and subfields?:
# { foo => " x ", bar => { foo = " y "} }
trim("...foo") # { foo => "x", bar => { foo = "y"} }
What about Data::Seek as a general solution for traversing complex hashes
This feature (and much more) will be available in the next release of Catmandu with the visitor() bind:
do visitor()
if all_match(key,foo)
trim(scalar)
end
end
https://github.com/LibreCat/Catmandu/blob/dev/lib/Catmandu/Fix/Bind/visitor.pm
this one can be closed, I suppose? The magic visitor bind
has been released.
Visitor is one route. @nics is working on a new Fix path algorithm that can do the requests shorthand in a future release of Catmandu
See #56 first.