Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Reading multiple lines?

by rdw (Curate)
on Nov 28, 2000 at 07:26 UTC ( [id://43603]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @slurp = <IN>;
    while (my @chunk = splice(@slurp, 0, 10)) {
      # do stuff
    }
    
  2. or download this
    while (my @chunk = map{scalar<IN>||()} 1..10) {
      # do stuff
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found