in reply to Re^2: Perl script for concatenating multiple files in aspecific order listed in a txt file
in thread Perl script for concatenating multiple files in aspecific order listed in a txt file

Well, chomping the lines from the input files may or may not be necessary. There is no point removing the new lines if the next print statement is just adding them back. So it really depends on what the input files look like.

It may even not be necessary to read the input files line by line and possibly faster to read 4-kB blocks or so.

  • Comment on Re^3: Perl script for concatenating multiple files in aspecific order listed in a txt file