Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(chromatic) RE: RE: Load file into a scalar without File::Slurp

by chromatic (Archbishop)
on Jul 17, 2000 at 08:09 UTC ( #22819=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

Here's a shorter version of that. I feel dirty:
{ local $/ = <STDIN>; }
Note to anyone who has to look at $/ to understand this -- do not use this code. It's a seriously ugly thing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://22819]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2018-06-23 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?