Catmandu::Fix::assoc(3pm) | User Contributed Perl Documentation | Catmandu::Fix::assoc(3pm) |
Catmandu::Fix::assoc - associate two values as a hash key and value
# {pairs => [{key => 'year', val => 2009}, {key => 'subject', val => 'Perl'}]} assoc(fields, pairs.*.key, pairs.*.val) # {fields => {subject => 'Perl', year => 2009}, pairs => [...]}
Catmandu::Fix
2023-03-03 | perl v5.36.0 |