the above will stop at the end of the shorter filewhile (my $col1 = <FILE1>) { chomp $col1; last unless (my $col2 = <FILE2>); print "$col1\t$col2"; }
In reply to Re^3: How do you create a tab delimited txt file from two files?
by Utilitarian
in thread How do you create a tab delimited txt file from two files?
by elef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |