An example program that downloads a webpage.

First install the LWP package via CPAN:

vivaldi:~# perl -MCPAN -e "install 'LWP';"
Then you can do the following:

#!/usr/bin/perl

use strict;
use LWP::Simple;

die "URL to fetch is required!\n" 
    if scalar @ARGV < 1;

print get pop;