jc7 has asked for the wisdom of the Perl Monks concerning the following question:
The <LOG> has format like:# skip old entries: while (<LOG>) { if (/^\s*([\d\/\-]+\s+[\d\.\:]+)\s+/) { next if ( (time() - str2time($1)) > $serverRef->{ScanErrlogLast +Days}*24*3600 ); $ref->{start_check_datetime} = $1; last; } } # scan the entries: while (<LOG>) { …
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Skip and Scan Lines
by dragonchild (Archbishop) on Mar 18, 2004 at 20:06 UTC | |
by Anonymous Monk on Mar 18, 2004 at 22:13 UTC | |
|
Re: Skip and Scan Lines
by graff (Chancellor) on Mar 19, 2004 at 01:32 UTC | |
by Anonymous Monk on Mar 22, 2004 at 18:58 UTC | |
|
Re: Skip and Scan Lines
by ambrus (Abbot) on Mar 18, 2004 at 20:48 UTC | |
by Anonymous Monk on Mar 18, 2004 at 22:27 UTC | |
by ambrus (Abbot) on Mar 19, 2004 at 16:13 UTC | |
by jc7 (Initiate) on Mar 22, 2004 at 19:08 UTC |