Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

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


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://22589]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-08-29 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls