Perl Language Reading a file's content into a variable File::Slurp


Example

Don't use it. Although it has been around for a long time and is still the module most programmers will suggest, it is broken and not likely to be fixed.