Dec 18, 2000, 9:01 PM
Post #3 of 4
Well, the easiest way to check if a URL you're given is valid is to try and fetch the headers from it:
If $valid is false, the URL isn't valid.
use LWP::Simple 'head';
$url = "http://www.perlguru.com/";
$valid = head $url;
Jeff "japhy" Pinyan -- accomplished hacker, teacher, lecturer, and author