Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Perl = Greek to me

by Not_a_Number (Prior)
on Dec 22, 2011 at 20:56 UTC ( [id://944851]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $slurp;
    {
    local $/ = undef;
    ...
    $slurp = <$textfile>;
    close $textfile;
    }
    
  2. or download this
    open my $textfile, '<', 'filename.txt' or die $!;
    while ( my $line = <$textfile> )
    {
      ## Do something with $line
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found