Catmandu::Fix::Bind::iterate(3pm)

Catmandu::Fix::Bind::iterate3pm

A binder iterates fixes in a loop

Usage

     # 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

Overview

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

Configuration

start

Start value of the iterator.

end

End value of the iterator.

step

Increase the interator with this value for every step.

var

Optional variable holding the value of the current step

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libcatmandu-perl 1.2024-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.