in reply to RE: Load file into a scalar without File::Slurp
in thread Load file into a scalar without File::Slurp

Try this on for size...

<xmp> my $content = join"",<FILEHANDLE>; </xmp>

oooh, I get goosebumps...

-Matthew
  • Comment on RE: RE: Load file into a scalar without File::Slurp

Replies are listed 'Best First'.
RE: RE: RE: Load file into a scalar without File::Slurp
by merlyn (Sage) on Jul 16, 2000 at 18:32 UTC
    But now you've built an array just to discard it when you create the string. So, you win points for "easy to type", but lose points for "wasteful implementation".

    -- Randal L. Schwartz, Perl hacker