Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Cheap idioms

by ignatz (Vicar)
on Oct 13, 2002 at 13:37 UTC ( #204896=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $contents = do { local (@ARGV, $/) = $filename; <> };
    
  2. or download this
    # Slurp file
    my $contents = do { local (@ARGV, $/) = $filename; <> };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2016-12-02 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (50 votes). Check out past polls.