The truly modern PerlIO approach would be, open my $fh, '<:raw', '/path/to/somefile.txt' or die $!; but I'd do it with binmode still, right after opening.
After Compline,
Zaxo
In reply to Re: Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by Zaxo
in thread Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by jeffa
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |