Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Reading files n lines a time

by naturalsciences (Beadle)
on Dec 06, 2012 at 14:12 UTC ( #1007582=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ($line0=<>) {$line1=<>;$line2=<>;$line3=<>;
    last if not defined $line0;
    last if not defined $line1;
    ...
    last if not defined $line3;
    do_some_stuff;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2016-09-30 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.