in reply to Delete lines as i read them
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Delete lines as i read them
by pie-ence (Initiate) on Jan 20, 2010 at 22:58 UTC |