Scroll to navigation

Catmandu::Fix::Bind::list(3pm) User Contributed Perl Documentation Catmandu::Fix::Bind::list(3pm)
 

NAME

Catmandu::Fix::Bind::list - a binder that computes Fix-es for every element in a list

SYNOPSIS

 add_field(demo.$append.test,1)
 add_field(demo.$append.test,2)
 do list(path => demo)
        add_field(foo,bar)
 end
 # will produce
   demo:
         - test: 1
           foo: bar
         - test: 2
           foo: bar

DESCRIPTION

The list binder will iterate over all the elements in a list and fixes the values in context of that list.

CONFIGURATION

path

The path to a list in the data.

AUTHOR

Patrick Hochstenbach - Patrick.Hochstenbach@UGent.be

SEE ALSO

Catmandu::Fix::Bind
2014-10-14 perl v5.20.1