Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 exploiting the Monastery: (10)
As of 2014-09-01 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls