in reply to Re^2: Getting columns from csv file in perl
in thread Getting columns from csv file in perl

*sigh*. Ok.
my @data = map { [split /,/] } <>;

Replies are listed 'Best First'.
Re^4: Getting columns from csv file in perl
by johngg (Canon) on Apr 24, 2007 at 14:43 UTC
    my @data = map { [split /,/] } <>;

    You might want a chomp in there to avoid leaving the line terminator in the last field.

    my @data = map { chomp; [split /,/] } <>;

    I second your *sigh* by the way.

    Cheers,

    JohnGG