View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Nicolas Steenlant > Catmandu > Catmandu::Fix::hash

Download:
Catmandu-1.07.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.07   Source   Latest Release: Catmandu-1.09

NAME ^

Catmandu::Fix::hash - creates a hash out of an array

SYNOPSIS ^

   # tags => ['name', 'Peter', 'age', 12]
   hash(tags)
   # tags => {name => 'Peter', age => 12}

DESCRIPTION ^

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.

SEE ALSO ^

Catmandu::Fix::array, Catmandu::Fix

syntax highlighting: