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.

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to