in reply to How to delet the actual readed line from a file?
The easiest way is to keep the line but store the line number in the file you last processed.
The second easiest way is to use Tie::File and treat the file like an array.