Catmandu::Fix::set_field(3pm)

Catmandu::Fix::set_field3pm

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

Usage

   # Change the value of 'foo' to 'bar 123'
   set_field(foo, 'bar 123')
   # Change a deeply nested key
   set_field(my.deep.nested.key, hi)
   # If the second argument is omitted the field has a null value
   add_field(foo)

Overview

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

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

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

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