I have a very simple task. I have a crontab that will run a script every hour. The script is meant to simply process a URL.
This is what I have. It doesn\'t work. I get
If shying away from executing command line tools from with Perl, the library equivalent is
use WWW::Curl::Simple;
my $curl = WWW::Curl::Simple->new();
my $res = $curl->get("https://stackoverflow.com");
The content you then access as in
print $res->content;
You may want to read up on https://metacpan.org/pod/WWW::Curl::Simple and the get method returns a https://metacpan.org/pod/HTTP::Response.