in reply to Problem Parsing Log Files
"I need to do it with two dimensional arrays". Why? Is it a school assignement? Otherwise a Hash (of Arrays) would make a lot more sense to find duplicate lines. The error message is the key, the timestamps are collected in the array.
If you only need the last timestamp and the count, you can drop the array and store a counter and the last timestamp either as a concatenated string or a two-value array or hash
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem Parsing Log Files
by ajay.awachar (Acolyte) on Jun 18, 2009 at 00:27 UTC | |
by jethro (Monsignor) on Jun 18, 2009 at 00:43 UTC | |
by dsheroh (Monsignor) on Jun 18, 2009 at 10:40 UTC |