in reply to Number Line while reading by chunks

Olá, Alberto. in short, no -- you have $., the current record number, and the result of tell, the current byte number. Maybe it would be better to trust perl's buffering and code your thing in a line-oriented way?? (just a suggestion, of course...)
[]s, HTH, Massa (κς,πμ,πλ)