http://qs1969.pair.com?node_id=117189

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone explain why the following code:
#!/usr/bin/perl use LWP::Simple; unless (head('http://www.123box.co.uk')) { push (@error,"$FORM{'url'} head error."); }
should push the error for the URL quoted and for http://www.quickwebmail.com but not for any other genuine URL I've tested it on? BTW, "get" works fine on them. According to LWPguru, Gisle Aas, the above construct can be used to test for the existence of a web page, and until today, that's always been true.