logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Name

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

See Also

       Catmandu::Fix

perl v5.40.0                                       2025-01-17              Catmandu::Fix:...tion::all_match(3pm)

Synopsis

          # 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

See Also