Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Common Perl Pitfalls

by JavaFan (Canon)
on Apr 09, 2012 at 23:11 UTC ( #964222=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $slurp;
    {local $/;
     $slurp = <INPUTFILE>};
    
  2. or download this
    my $slurp = do {local(@ARGV, $/) = "inputfile"; <>};
    
  3. or download this
    my $slurp = `cat inputfile`;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2016-09-26 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (485 votes). Check out past polls.