logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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