in reply to Re^4: sorting logfiles by timestamp
in thread sorting logfiles by timestamp
I have no problem with your regex approach for the timestamp. The OP seemed to be asking how Time::Piece could be used for sorting, so I showed a method for doing that.
I agree that ISO 8601 format for the timestamps would be preferable.
The OP didn't show real data for "<data1> <data2>". I suspect your '(\S+) (\S+)' may well be an oversimplification of what's really required; however, no more so than my splitting on whitespace. :-)
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: sorting logfiles by timestamp
by Jim (Curate) on Jan 22, 2014 at 18:04 UTC | |
by kcott (Archbishop) on Jan 23, 2014 at 13:59 UTC | |
by Jim (Curate) on Jan 24, 2014 at 16:50 UTC |