I need help writing a perl script that will be run as a cron job. The script needs to connect to a webserver and download a specific page (just the source, no pictures or anything), and then save that to my server. I have tried a script already (attached) but it says unknown error on line 25 when I tried using it (in Windows with ActivePerl). Maybe this isn't the script I need at all. If anyone could help me out, that would be great. Thanks!
I wrote an example on how to grab a url via the Socket module, it's nothing fancy but it works for me. I always like to stick with modules that are included with the server so I don't run into as many problems when distributing my code.
Also, I wrote an example on how to send email via Socket too which is included.