in reply to Config::General to read both scalars and arrays

From the documentation it seems arrays are defined by repeating the key:
list_of_items = apple list_of_items = ball list_of_items = cup

The square brackets can be used for single-element arrays only under ForceArray.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Config::General to read both scalars and arrays
by The_Marshall (Initiate) on May 22, 2019 at 17:06 UTC

    Hey choroba,

    Thank you for the quick response.

    Yes, identical options generate an array. But, I'm explicitly needing the ability to:

    • Overwrite previous values
      user_name = "Marshall"# Change value within default.ini
    • Create an array of values
      list_of_items = ["apple", "ball", "cup"]

    The documentation is light on arrays. There's a few settings that seem to apply but, I can't get them to work as advertised. Well, at least how I understand it to be advertised.

    Mainly I've been playing around with MergeDuplicateOptions and MergeDuplicateBlocks.