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

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

   # 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

Catmandu::Fix

2023-03-03 perl v5.36.0