Nicolas Steenlant > Catmandu-0.5003 > Catmandu::Fix::lookup

Download:
Catmandu-0.5003.tar.gz

Dependencies

Annotate this POD

CPAN RT

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

NAME ^

Catmandu::Fix::lookup - change the value of a HASH key or ARRAY index by looking up it's value in a dictionary

SYNOPSIS ^

   lookup('foo.bar', 'dictionary.csv');
   lookup('foo.bar', 'dictionary.csv', '-sep_char', '|');
   # delete value if the lookup fails:
   lookup('foo.bar', 'dictionary.csv', '-delete', 1);
   # use a default value if the lookup fails:
   lookup('foo.bar', 'dictionary.csv', '-default', 'default value');

SEE ALSO ^

Catmandu::Fix

syntax highlighting: