#!/usr/bin/perl use strict; use warnings; use REST::Client; #The basic use case my $client = REST::Client->new(); $client->GET('https://perlmaven.com/'); print $client->responseContent(); __END__ $ perl test.pl > index.html