Help for this page
open my $fh, "foo" or die $!; local $/; # enable localized slurp mode my $content = <$fh>; close $fh;