Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Catmandu::Fix::Condition::exists - only execute fixes if the path exists

Name

       Catmandu::Fix::Condition::exists - only execute fixes if the path exists

See Also

       Catmandu::Fix

perl v5.40.0                                       2025-01-17              Catmandu::Fix::Condition::exists(3pm)

Synopsis

          # uppercase the value of field 'foo' if the field 'oogly' exists
          if exists(oogly)
            upcase(foo) # foo => 'BAR'
          end
          # inverted
          unless exists(oogly)
            upcase(foo) # foo => 'bar'
          end

See Also