Perl HELP. Need to check a URL and detect when changes occur?

ron

New member
My scripting skills are less than stellar, but all of a sudden I'm presented with a problem where a .perl script could really be beneficial. Maybe someone here can assist with the creation of the script. Hopefully it's not too difficult.

Basically, I'm trying to detect changes (additions) on a webpage.

I need a perl script that will check a predefined URL every 10 minutes and then count the number of lines that are contained within the returned .html document. Upon the next check of the URL, if the number of lines in the .html document have increased, I need the script to send an email.

So in a nutshell...

Go to a URL, wget the page, count the number of lines, store that data. Check the URL again 10 minutes later, count the number of lines, store the data, compare to the previous check, if more lines appear then send an email.

Any assistance would be greatly appreciated.
 
Back
Top