Survivor has asked for the wisdom of the Perl Monks concerning the following question:
I have 3 files (these are the log files of the system). These files have date formate like this (Dec 5 09:02:01). I need to read these files from from the first date(Dec 5 09:02:01) till the last date (Dec 17 17:34:02) in the file. Then i have to search a word between the time difference of one minute and i have to count that how many times that word is present between these two time period.
For example : Start time End Time Number of times word found. Dec 5 09:02:01 Dec 5 09:03:00 10 (first entry) Dec 5 09:03:01 Dec 5 09:03:00 5 (second entry) Dec 5 09:04:01 Dec 5 09:04:00 3 (third entry)
and so on till the last entry of the date (Dec 17 17:34:02)
How i can handle these dates. I have read about the Time::Local but that did not solve my problem. I will be very thankful for any help.
Many thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems in dates and time additions by one minute
by ww (Archbishop) on Dec 18, 2011 at 20:42 UTC | |
|
Re: Problems in dates and time additions by one minute
by TJPride (Pilgrim) on Dec 18, 2011 at 20:50 UTC | |
by Survivor (Initiate) on Dec 19, 2011 at 22:09 UTC | |
by graff (Chancellor) on Dec 20, 2011 at 04:05 UTC | |
|
Re: Problems in dates and time additions by one minute
by CountZero (Bishop) on Dec 19, 2011 at 10:22 UTC |