use HTTP::Tiny; my $http = HTTP::Tiny->new; my $response = $http->get('...'); ... $response = $http->get('...');