Help for this page

Select Code to Download


  1. or download this
    use LWP::Simple qw($ua get); # export the underlying LWP::UserAgent in
    +to $ua ...
    
    $ua->timeout(10); # ... and set a timeout on it (seconds)
    
    my $doc = get('...') || die {$pass=0};