script. :
print {$log} "get: Error: $!\n"
until ( ${$content_ref}
= LWP::Simple::get("www.somesite.com/index.html") );
, , URL- , get, , undef. , until. , ? , , .
script :
while( 1 ) {
my $data = LWP::Simple::get("http://www.somesite.com/index.html");
print "got [$data]\n";
if( substr( ... ) > -1 ) { sleep 1800; next }
.... do error stuff here ...
}
, 30 , script 30 cron. :
my $data = LWP::Simple::get("http://www.somesite.com/index.html");
print "got [$data]\n";
exit if( substr( ... ) > -1 );
.... do error stuff here ...