in reply to Re: split and assign
in thread split and assign

I'm actually parsing a csv and only need columns 1, 2 and 8
my ($a, $b, $c) = (split /;/, $line)[0,1,7];

Replies are listed 'Best First'.
Re^3: split and assign
by Anonymous Monk on Mar 04, 2014 at 19:06 UTC
    Thanks! My brain is fried, I kept trying multiple [] like [0][1][7] and [0],[1],[7]...