Perl – merging files

Below I demonstrate a quick method of merging two files into a third file using Perl. The program merges two files together into a third file by writing one line from file one to file three and then writing one line from file two to file three; this pattern is then repeated until all contents from both file one and file two
have been written to file three.

Merging two files with Perl

Merging two files with Perl

This entry was posted in Perl, Programming Languages and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


− 2 = two