Check URL using PERL

I am trying to create a perl script that will make sure a web page can be accessed going through an Apache httpd. The actual content of the web page does not matter. Most likely the web page will just have "You have successfully reached this port." This script will eventually be running continually throughout the day. I am relatively new to perl and have no clue how to do this. Please help.

Why Perl? Is this homework?

Ah, not quite. I haven't seen homework in almost 10 years. My supervisor wants it done in perl. We have moved all of our scripts from ksh to perl and anything new is to be written in perl.

My appologies for the misconception...

Sorry I can't help more - I would've said do it in ksh!

Any perl-people that can help?

This may serve your needs - a script to check dead links - it should at least give you enough to start your own.

Written by Martial Michel and can be found at DLC Sourceforge.net

LivingFree,
No problem. I take it from your response I should have worded my initial post different.

RTM,
Thanks for the link. It looks like this will help. Unfortunately we don't have the LWP module yet which this script requires. Hmmm. I am trying to see if I can do this without too much hassle using IO::Socket.