in reply to How do I join two files side by side?
Of course being this is perlmonks, not catmonks . . .
open( OUT, ">xyzfile" ) or die "Can't create xyzfile: $!\n"; foreach( qw( xfile yfile zfile ) ){ local( *IN ); open( IN, $_ ) or die "Can't open $_: $!\n"; print OUT while <IN>; close( IN ); }
Originally posted as a Categorized Answer.
|
|---|