Catmandu::Fix::Condition::any_equal(3pm)

Catmandu::Fix::Condition::any_equal3pm

Execute fixes when at least one of the path values equal a string value

Usage

   # any_equal(X,Y) is true when at least one value of the array X equals 'Y'
   if any_equal('years.*','2018')
    add_field('my.funny.title','true')
   end
   # any_equal(X,Y) is false when none of the values of X equal 'Y'

Overview

This fix is meant as an simple alternative to Catmandu::Fix::Condition::any_match. No regular expressions are involved. String are compared using the regular operator 'eq'.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

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

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