- or download this
use File::Slurp;
my @file1 = read_file('file1');
my @file2 = read_file('file2');
- or download this
my $lines = merge_lines(\@file1, \@file2);
write_file('file3', @$lines);
- or download this
sub merge_lines {
my ($lines1, $lines2) = @_;
...
....
return \@lines;
}