[Catalyst] Catalyst Advent Calendar - Day 10 - Config General & Arrays

Kieren Diment diment at gmail.com
Thu Dec 11 10:29:30 GMT 2008


On 11/12/2008, at 6:38 PM, Michele Beltrame wrote:

> Hi all!
>
> You should also be able to get around this Config::General  
> limitation this way:
>
> <some_values>
>    want_an_array myentry
>    want_an_array myentry
> </some_values>
>
> That is, repeating twice the same entry. This avoids the creation of
> spurious entries.
>
> I'm quite sure I used to go this route before definitely switching  
> to JSON,
> which doesn't suffer of this and, if formatted properly, can be easy  
> to read
> and manipulate as well.


I looked at this, and the length of the array was still wrong, which  
means there is bogus data in there, however subtle.  Ideally we'd get  
proper single item arrays back into Config::General, but apparently  
nobody cares enough about it to actually write the code.



More information about the Catalyst mailing list