Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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

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.

Name

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

See Also

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

perl v5.40.0                                       2025-01-17                           Catmandu::Fix::hash(3pm)

Synopsis

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

See Also