in reply to Treating the file contents of a text file as a string

You can also use File::Slurp
use strict; use warnings; use File::Slurp; my $bigfile = read_file ('file1') . read_file ('file2'); print "$bigfile\n";