Catmandu::Fix::Bind::with - a binder that computes Fix-es in the context of a path
# Input data data: - name: patrick - name: nicolas # Fix do with(path => data) if all_match(name,nicolas) reject() end end # will produce data: - name: patrick
The with bind allows to run fixes in the scope of a path.
with
Given a deep nested data structure :
my: deep: field: name: James Brown
these two fixes are equal:
add_field(my.deep.field.style, funk) do with(path => my.deep.field) add_field(style,funk) end
The path to a list in the data.
Catmandu::Fix::Bind
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.