Catmandu::Fix::set_hash - add or change the value of a HASH key or ARRAY index to a hash
Contents
Description
Contrary to "add_field", this will not create the intermediate structures if they are missing.
Name
Catmandu::Fix::set_hash - add or change the value of a HASH key or ARRAY index to a hash
See Also
Catmandu::Fix
perl v5.40.0 2025-01-17 Catmandu::Fix::set_hash(3pm)
Synopsis
# Change the value of 'foo' to an empty hash
set_hash(foo)
# Or a hash with initial contents
set_hash(a: b, c: d)
