Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by Hofmator (Curate)
on Jan 06, 2003 at 09:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://224587]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found