[Catalyst] Defining ARRAY in Config::General config
andrew at cleverdomain.org
Tue Sep 21 08:27:28 GMT 2010
On Tuesday, September 21, 2010 02:52:52 am Octavian Rasnita wrote:
> The problem appears when the array should have just a single item, because
> in that case Config::General reports it as a scalar value.
> I don't know if there is a better way of defining a single-item array with
> Config::General, but I found a workaround that may work. We can use
> something like:
With Config::General >= 2.47 and Config::Any >= 0.20, you can use the syntax
"foo [ bar ]" or "foo = [ bar ]" to set the key "foo" to an arrayref
containing the single value "bar". The latest version of
Catalyst::Plugin::ConfigLoader will ensure that you're up to date.
More information about the Catalyst