Search notes:

Perl module LWP::Simple

get

use warnings;
use strict;

use LWP::Simple;

my $result = get('https://raw.githubusercontent.com/ReneNyffenegger/PerlModules/master/LWP/Simple/get.pl');
print($result);
Github repository PerlModules, path: /LWP/Simple/get.pl

getprint / getstore

#!/usr/bin/perl
use warnings;
use strict;
use LWP::Simple;

my $url;

$url = 'https://raw.githubusercontent.com/ReneNyffenegger/PerlModules/master/LWP/Simple/script.pl';
# On Windows, this url prints
#   500 write failed: Bad file descriptor
# even if the PERL_LWP_SSL_VERIFY_HOSTNAME env variable
# is set to 0.
# $url = 'http://www.google.com';

# Just print a remote file
getprint($url);

# Get the remote file and store it
getstore($url, 'downloaded');
Github repository PerlModules, path: /LWP/Simple/script.pl

See also

The error message Can't load SSLeay.xs.dll.
download-content-of-linked-pages.pl
HTTP::Async can be used to download resources in parallel rather than sequential.
Perl modules

Index