File 1: one two three four File 2: A B C D #### one[tab]A two[tab]B three[tab]C four[tab]D #### while (my $col1 = ) { chomp $col1; my $col2 = ; print "$col1\t$col2"; } #### until(eof(ONE) and eof (TWO)) { my $one = ; my $two = ; $one ||= ""; $two ||= ""; chomp($one); chomp($two); print "$one\t$two\n"; }