in reply to Re^2: Comparing Dates and Reoccurance
in thread Comparing Dates and Reoccurance

You are opening and closing $fh_out, but you are not WRITING to it.

Do you see anything on STDOUT ?

If the file format is as you said in the initial post, this has been tested and it works. However, it is fragile, and even the slightest difference in format will throw it off.

I would suggest learning how to debug the program, stepping through each statement, and checking the values.

     "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom