Help for this page
my $fh = "OUTPUT" . $i;
# before the if ($. == 1) my @fhs; ... # use it print {$fhs[$i]} "$line[0]\t$line[$i]\n";