perl -we 'my $x = `cat file2`; $x .= `cat file2`' # works fine