Nicolas Steenlant > Catmandu-0.5003 > Catmandu::Fix::Condition::exists

Download:
Catmandu-0.5003.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Catmandu-0.9209

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

syntax highlighting: