Nicely done, Dave. However, since we don't know the number of columns or the file size, do you think it would be better to limit the split to only the needed columns, as in the following?

my @columns = (split /\t/)[1 .. 2];

Depending on these factors and the machine, the script might otherwise choke.

Just a thought...


Now splitting on /\t/ based upon sauoq's good catch in his comment below.

In reply to Re^2: multicolumn extraction by Kenosis
in thread multicolumn extraction by Anto_ch

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":