Catmandu::Fix::hash - creates a hash out of an array
# tags => ['name', 'Peter', 'age', 12] hash(tags) # tags => {name => 'Peter', age => 12}
This fix functions transforms array fields to hashes. The number of array elements must be even and fields to be used as field values must be simple strings. String fields and hash fields are left unchanged.
Catmandu::Fix::array, Catmandu::Fix
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.