From: "Nicolas Desprès" Date: 2006-08-25T04:17:51+09:00 Subject: Re: YAML or CSV? On 8/24/06, Peter Bailey wrote: > Nicolas Despr�s wrote: > > On 8/24/06, Jan Svitok wrote: > > > > [...] > > > >> } > >> > > You can also use the inline array which is equivalent but look more like > > CSV: > > > > filename1: [ data11, data12, data13 ] > > filename2: [ data12 ] > > > >> otherwise your yaml would look like (array of arrays:) > >> - > >> - filename1 > >> - data11 > >> - data12 > >> - data13 > >> - > >> - filename2 > >> - data21 > >> > > > > or this way: > > > > - [ filename1, data11, data12, data13 ] > > - [ filename2, data21 ] > > > > Cheers, > > > So, all of the "data" entries in your "filename" arrays are simply > values? So, each "filename" row is an array in itself? Is that what you > mean by "inline array?" > No. I used this phrase because it is the one used in the Yaml cookbook: http://yaml4r.sourceforge.net/cookbook/ I just said that there are two ways to write an array in Yaml: - foo - bar or [ foo, bar ] Cheers, -- Nicolas Despr�s