Due to the date format you are using it is not always possible to get a correct truth value. If you have the date Dec 31. You may not throw it out correctly. Say you check the date Dec 31 on Jan 1, you algorithm would show a date distance of 1 day, but maybe these are more than 1 day apart (i.e. Dec 31 1942 and Jan 1 2005) you have no way of knowing since year is not listed in your log files. What is writing these log files? If you are I suggest reformatting them properly, and then taking a look at The DateTime Module
Also for deleting lines from the file.. you can't "technically" do that.. you can blank out lines but it will still be left as blank. You should open a new filehandle and write to it the things that pass your 90 day test.
In reply to Re: Dates! Log Files! Help!
by Grygonos
in thread Dates! Log Files! Help!
by rementis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |