| Catmandu::Fix::Condition::exists(3pm) | User Contributed Perl Documentation | Catmandu::Fix::Condition::exists(3pm) |
NAME¶
Catmandu::Fix::Condition::exists - only execute fixes if the path existsSYNOPSIS¶
# 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| 2019-01-29 | perl v5.28.1 |