laziness, impatience, and hubris | |
PerlMonks |
Re: Efficient Way to Parse a Large Log File with a Large Regexby thor (Priest) |
on Apr 12, 2005 at 23:48 UTC ( [id://447212]=note: print w/replies, xml ) | Need Help?? |
From your tail -f comment, this is a running log. If so, you can trim down your time by saving off the last position that you ended with in the file with tell and reading it back in at script start and using seek. That way, you're only looking at new entries every time.
thor
Feel the white light, the light within
In Section
Seekers of Perl Wisdom
|
|