The best way is to not do that and instead just to remember the offset up to which you read last time. Perl will tell you where you are in a file. Deleting lines has the problem that if your program does not work right you have already removed part of the data your program should process.
In reply to Re: Delete lines as i read them
by Corion
in thread Delete lines as i read them
by pie-ence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |