in reply to Speeding things up

You have a "double pump" going on there.

my $req = HTTP::Request->new(GET => $targetURL); my $res = $ua->request($req); if ($res->is_success) { my $website_content = $res->decoded_content; ... }

Replies are listed 'Best First'.
Re^2: Speeding things up
by Anonymous Monk on Apr 15, 2018 at 10:06 UTC

    Yes I know but didn't know of another way of pulling down a URL, checking response code and grabbing the content in a oner.