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

Catmandu::Fix::Condition::all_match - only execute fixes if all path values match the given regex

   # uppercase the value of field 'foo' if all members of 'oogly' have the value 'doogly'
   if all_match(oogly.*, "doogly")
     upcase(foo) # foo => 'BAR'
   end
   # case insensitive search for 'doogly' in all 'oogly'
   if all_match(oogly.*, "(?i)doogly")
     ...
   end

Catmandu::Fix

2023-03-03 perl v5.36.0