Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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??


in reply to Re: A few random questions from Learning Perl 3
in thread A few random questions from Learning Perl 3

Just as a sidenote, this

my $whole_file; { local($/) = undef; $whole_file = <F>; # <> operator reads in all of the data from fil +ehandle F }
could also be written more concisely like this:
my $whole_file = do { local $/; <F> };

-- Hofmator

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 having an uproarious good time at the Monastery: (2)
As of 2020-02-23 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (102 votes). Check out past polls.

    Notices?