in reply to How do I find the total number of lines in a file?
while(<>){}; print "$. lines\n"; [download]