my $contents = path($file_path)->slurp; [download]
In reply to Re: How do I read an entire file into a string? by choroba in thread How do I read an entire file into a string? by vroom