in reply to Load file into a scalar without File::Slurp
I just go:
The $/ variable is not per-filehandle, so no need to select.my $contents = do { local $/; <HANDLE> };
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: Load file into a scalar without File::Slurp
by BlueLines (Hermit) on Jun 29, 2000 at 01:15 UTC | |
RE: RE: Load file into a scalar without File::Slurp
by matthew (Acolyte) on Jul 14, 2000 at 20:58 UTC | |
by merlyn (Sage) on Jul 16, 2000 at 18:32 UTC |
In Section
Cool Uses for Perl