Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
laziness, impatience, and hubris
 
PerlMonks  

RE: RE: Load file into a scalar without File::Slurp

by matthew (Acolyte)
on Jul 14, 2000 at 16:58 UTC ( [id://22589]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 14: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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://22589]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.