DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Fix::Bind::iterate.3pm.en
Catmandu::Fix::Bind::iterate(3pm) User Contributed Perl Documentation Catmandu::Fix::Bind::iterate(3pm)

Catmandu::Fix::Bind::iterate - a binder iterates fixes in a loop

     # Create:
     #   numbers = [1,2,3,4,5,6,7,8,9,10]
     do iterate(start:1, end: 10, step: 1, var: i)
        copy_field(i,numbers.$append)
     end

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

Start value of the iterator.

End value of the iterator.

Increase the interator with this value for every step.

var

Optional variable holding the value of the current step

Catmandu::Fix::Bind , Catmandu::Fix::list , Catmandu::Fix::with ,

2023-03-03 perl v5.36.0