Config::Tiny V 2.30 supports keys with arrays as values
Yes, it's true. Config::Tiny now allows you to assign an array of values to a key.
The docs have been updated to include a new section, ARRAY SYNTAX.
Various examples are documented there and in test files. Sample usage:
[section]
greetings[]=Hello
greetings[]=World!
one=two
Foo=Bar
Note: The 2 lines of greetings can be separated by other lines too.
You access these values like this:
say $Config->{section}->{greetings}->[0];
say $Config->{section}->{greetings}->[1]
This patch was kindly provided by Steven Schoch.
See the Changes file for details.
Nice. I'll have to check this with Util::H2O's recipe git a Config::Tiny's instance accessors. Util::H2O::More has a wrapper to do this.