Hi All,

Can I use LWP::Simple to check a local file that contains only URI's
(http://www.website.com) each on a new line?

Maybe something like this...?
--------------------------------------------------------------
open(IN, "<$file") || die "Can't open $file: $!";
while (<IN>) {
--------------------------------------------------------------
I just want to see if the links are working...
I read the LWP::Simple module and it looks like I should use head($url) ?
and maybe:
$successful = is_success(status);
$failed = is_error(status);
Please let me know if I'm headed in the right direction... :-)
Thanks!
Brian Volk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to