Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Reading multiple lines?

by repson (Chaplain)
on Nov 28, 2000 at 17:20 UTC ( [id://43664]=note: print w/replies, xml ) Need Help??


in reply to Re: Reading multiple lines?
in thread Reading multiple lines?

Unless I'm missing something this code would only get the first block of 10 lines then would stop. Maybe this would be better:
local $.; while (<IN>) { push @lines , scalar <IN>; next if (($.%10 == 0) and (!eof(IN))); # process @lines @lines = (); # clear }

Log In?
Username:
Password:

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

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

    No recent polls found