There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

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

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

Catmandu::Fix