Install a perl module using apt-get

examples/perl-mechnize/Dockerfile
FROM ubuntu:16.10
RUN apt-get update && apt-get install -y libtest-www-mechanize-perl
examples/perl-mechnize/get.pl
use 5.010;
use strict;
use warnings;

use WWW::Mechanize;

my ($url) = @ARGV;
die "Usage: $0 URL\n" if not $url;

my $w = WWW::Mechanize->new;

$w->get($url);
say $w->content;

$ docker run -v /Users/gabor/work/mydocker:/opt/  mydocker perl /opt/get.pl
Usage: /opt/get.pl URL
docker run -v /Users/gabor/work/mydocker:/opt/  mydocker perl /opt/get.pl http://perlmaven.com/