in reply to Merging larges files by columns

it takes forever

Why I'm not surprised?

while (<IN1>){ chomp; print OUTFILE $_;

A complicated way to copy $infile to $outfile, better use File::Copy