Catmandu::Fix::hash(3pm)

Catmandu::Fix::hash3pm

Creates a hash out of an array

Usage

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

Overview

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From libcatmandu-perl 1.2024-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.