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
In reply to Re: Parsing a specific section of a log file
by jettero
in thread Parsing a specific section of a log file
by vxp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |