in reply to How to check if a website is up?

This simplest solution is LWP::Simple
use LWP::Simple; my $url=""; if (! head($url)) { die "The Server is DOWN!!!!" }
an alternative is using a get:
if (! get($url)) {
but that would fetch the content of the page. A head call uses the least resources, just telling you weather the machine is responding to that url.