Catmandu::Fix::set_array
add or change the value of a HASH key or ARRAY index to an array
- Provided by: libcatmandu-perl (Version: 1.2024-1)
- Report a bug
add or change the value of a HASH key or ARRAY index to an array
Contrary to "add_field", this will not create the intermediate structures if they are missing.
# Change the value of 'foo' to an empty array set_array(foo) # Or an array with initial contents set_array(foo, "a", "b", "c")
Catmandu::Fix