The $/ variable is not per-filehandle, so no need to select.my $contents = do { local $/; <HANDLE> };
-- Randal L. Schwartz, Perl hacker
In reply to RE: Load file into a scalar without File::Slurp
by merlyn
in thread Load file into a scalar without File::Slurp
by BlueLines
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |