in reply to Re: Problem using File::ReadBackwards
in thread Problem using File::ReadBackwards
You all were right.
It turned out the log file had empty lines in it, for whatever reason our developers decided to stick them in there.
I easily solved it by simply doing:
prior tonext if $log_line =~ /^$/;
last if $log_line lt $earliest;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem using File::ReadBackwards
by rpanman (Scribe) on Jul 10, 2007 at 18:41 UTC | |
|
Re^3: Problem using File::ReadBackwards
by ysth (Canon) on Jul 10, 2007 at 17:51 UTC |