open my $file, '<', "file1"; while ($file){ chomp; my ($one,$too,$tree,$fool,$flin) = split /\t+/, $_, 5; print $one, " ", $flin; }