open (file.....) while () { $. = 2; # $. holds the number of the last read line .....