The_Marshall has asked for the wisdom of the Perl Monks concerning the following question:
Hey all,
In a nutshell, I'm trying to accomplish the following:
# config.ini include default.ini user_name = "Marshall" # Change value within default.ini list_of_items = ["apple", "ball", "cup"]
However, what I wind up with are 2 scalars:
{ 'user_name' => 'Marshall', 'list_of_items' => '["apple", "ball", "cup"]' }
I've tried so many different settings. The above generated with:
ParseConfig( -ConfigFile => 'simple.ini', -UseApacheInclude => 1, -MergeDuplicateOptions => 1 );
So, I need some advice. I've even tried to use blocks to hold arrays, but nothing seems to work.
Config::General::Version = '2.63'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Config::General to read both scalars and arrays
by choroba (Cardinal) on May 22, 2019 at 16:06 UTC | |
by The_Marshall (Initiate) on May 22, 2019 at 17:06 UTC | |
|
Re: Config::General to read both scalars and arrays
by holli (Abbot) on May 22, 2019 at 18:22 UTC | |
by holli (Abbot) on May 22, 2019 at 19:21 UTC |