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. Andrew _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/