Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-08-29 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (286 votes), past polls