in reply to Re: Short (and clever?) CSV-to-AoA
in thread Short (and clever?) CSV-to-AoA
Yes, it is much better ... Because my code does something different than yours does. :)
My code turns each *column* of DATA into a single anonymous array, stored in @AoA so the print statement gives
1, 4, 7, A, D, G, J, M, P, S, V, Y
Your
gives 1, 2, 3.my @AoA = map [split], <DATA>; print join( ', ' , @{ $AoA[ 0 ] } ) , "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Short (and clever?) CSV-to-AoA
by merlyn (Sage) on Apr 24, 2001 at 00:26 UTC | |
by scott (Chaplain) on Apr 24, 2001 at 00:51 UTC | |
by merlyn (Sage) on Apr 24, 2001 at 00:56 UTC | |
by scott (Chaplain) on Apr 24, 2001 at 17:29 UTC | |
by merlyn (Sage) on Apr 24, 2001 at 18:34 UTC |