in reply to Iterating through HUGE FILES
while( <OUT> ){ $. % 1000 or print "line $. \n"; # do stuff here } [download]