hello,

> Hi Marc, I tried the first solution you posted and the "subheaders"
> are returned out of order (e.g. "2,1,3" and not "1,2,3"):

you're right but it doesn't matter in this usecase.

> mbook:~ homedir$ cat p6_chunk_csv.p6
>         lines.classify(*.split(",").head(2)).pairs.map: {
>             .say for .key, |.value.map({ "\t" ~ .key });
>         }
> mbook:~ homedir$ cat awk_test1.csv | perl6 p6_chunk_csv.p6

useless use of cat: as lines() works on $*ARGFILES, you can
just write:

    perl6 p6_chunk_csv.p6 awk_test1.csv

thanks for helping me
regards
marc

Reply via email to