That said, I do like the way the proposed idiom looks.my $string; { local $/ = undef; $string = <FH>; }
In reply to Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by skillet-thief
in thread Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by jeffa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |