in reply to Re: Re: Short (and clever?) CSV-to-AoA
in thread Short (and clever?) CSV-to-AoA
Ahh, then it's just a matter of asking for the right print! The idiom for "extract a column while printing" is known, and reusable:
my @AoA = map [split], <DATA>; print join(", ", map $AoA[0][$_], 0..$#{$AoA[0]}), "\n";
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Short (and clever?) CSV-to-AoA
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 |
In Section
Meditations