On 8/24/06, Jan Svitok <jan.svitok / gmail.com> wrote:

[...]

>
> filename1, data11, data12, data13
> filename2, data21, data22, data23
> filename3, data31, data32, data33
>
> into
> {
>       filename1 => [ data11, data12, data13 ],
>       filename2 => [ data21, data22, data23 ],
>       filename3 => [ data31, data32, data33 ]
> }
> (quotes omitted)
>
> which in YAML looks like:
>
> filename1:
>   - data11
>   - data12
>   - data13
> filename2:
>   - data21
>

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,

-- 
Nicolas Despr?s