use Slurp; my $content = slurp('filename');