Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I don't want to see if the url looks good, since I am parsing the webpage they provide for text, I need to say "Okay, the page is found..let's work" or "Nope, page can't be found so let's terminate".
my $geturl = "http://$url"; my $content = get("$geturl"); unless (defined $content) { print "<center>URL not found!</center><br><br>"; exit; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: checking a url to make sure it works
by CountZero (Bishop) on Feb 20, 2004 at 07:31 UTC | |
Re: checking a url to make sure it works
by jweed (Chaplain) on Feb 20, 2004 at 07:00 UTC | |
Re: checking a url to make sure it works
by benn (Vicar) on Feb 20, 2004 at 12:37 UTC |