until(eof(ONE) and eof (TWO)) { my $one = ; my $two = ; $one ||= ""; $two ||= ""; chomp($one); chomp($two); print "$one\t$two\n"; }