logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::set_array - add or change the value of a HASH key or ARRAY index to an array

Description

       Contrary to "add_field", this will not create the intermediate structures if they are missing.

Name

       Catmandu::Fix::set_array - add or change the value of a HASH key or ARRAY index to an array

See Also

       Catmandu::Fix

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

Synopsis

          # Change the value of 'foo' to an empty array
          set_array(foo)
          # Or an array with initial contents
          set_array(foo, "a", "b", "c")

See Also