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

Re: Re: A few random questions from Learning Perl 3

by Hofmator (Curate)
on Jan 06, 2003 at 09:40 UTC ( #224587=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $whole_file;
    {
       local($/) = undef;
       $whole_file = <F>;  # <> operator reads in all of the data from fil
    +ehandle F
    }
    
  2. or download this
    my $whole_file = do { local $/; <F> };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-02-24 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (104 votes). Check out past polls.

    Notices?