or download this
@filetoread = <INFILE>; # read in file all at once
my $linestooutput = ''; # place to save output until the en
+d
...
$linestooutput .= join("\t",(split /\s+/)[@ColumnNumbers])."\n" foreac
+h (@filetoread);
print OUTFILE $linestooutput;