in reply to require sugesstions for writing a perl script
Perhaps you could ignore the files that haven't changed?