Catmandu::Fix::set_array(3pm)

Catmandu::Fix::set_array3pm

Add or change the value of a hash key or array index to an array

Usage

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

Overview

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

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libcatmandu-perl 1.2024-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.