in reply to Parsing a specific section of a log file
Personally, for tasks like this, I usually use File::ReadBackwards and Time::Local qw(timelocal_nocheck) to quickly read only the recent lines (and stop reading when things get) $too_old.
In fact, I learned about Time::Local at this site, asking a related question: Fast date parsing.
-Paul
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Parsing a specific section of a log file
by been42 (Curate) on Feb 28, 2007 at 22:00 UTC | |
by jettero (Monsignor) on Feb 28, 2007 at 22:08 UTC | |
by been42 (Curate) on Feb 28, 2007 at 22:31 UTC |