I have a website which is located in a diffirent country. I want to download a file from that site everyday. The file name keeps on changing everyday. say the file name is CTP-latest-5.3.0.37.iso next day it may change to "CTP-latest-5.3.0.38.iso" or remain same.

I want to download only if the version number (ie. 38 in above example("38.iso") is not the same from last sucessful download or else dont download.

This works fine in downloading the file, But I need to have a check on version number. So I want to download only if the version number has been changed from the version number of previous successful download.

1) Use LWP to download the webpage that actually links to the file. 2) Parse that file to determine the current resource version 3) Download that file if it's different from the previously downloaded resource.