in reply to Comparing file dates then downloading newer files through ftp

One problem you could be having with your date-extraction regexp is case sensitivity and using =~ (matching) instead of = (assignment). Try
($month,$day) = /(\d\d)(\d\d)x86\.exe/i;
-Mark