Help for this page

Select Code to Download


  1. or download this
    my @filtered_links = grep {
       my $response = $browser->get($_);  # Better: ->head($_)
    ...
       && (($response->content_type eq 'text/html') 
           || ($response->content_type eq 'text/plain'))
    } @links;