Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Reading multiple lines?

by Fastolfe (Vicar)
on Nov 28, 2000 at 07:50 UTC ( [id://43607]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ($i=0, @chunk = (); !eof(IN) && $i < 10; $i++) {
       $chunk[$i] = <IN>;
    }
    
  2. or download this
    # Untested, but you get the idea
    
    ...
          handle_line($1);
       }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found