in reply to Re: Slurp a file
in thread Slurp a file
And my most-frequently-used variant of that is:
Short, and effective.my $content = do {local $/; <SOMEHANDLE> };
In Section
Cool Uses for Perl