Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Edit huge fileby LanX (Saint) |
on Jun 19, 2013 at 16:50 UTC ( [id://1039803]=note: print w/replies, xml ) | Need Help?? |
see Re: use regular expressions across multiple lines from a very large input file for a discussion of the sliding window technique. Mainly you need to read windows of a size guarantied bigger as the lines you wanna erase. The windows in between shouldn't cost much if you read and write in bulk instead of line per line. HTH! =)
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|