Perl can be built with relocatable enabled, which means you can move perl wherever you want!
I prepared relocatable enabled perls for linux and MacOS X. See release page.
Just download and extract it.
Let's say you use MacOS X, then:
> wget https://github.com/shoichikaji/relocatable-perl/releases/download/0.7/perl-darwin-2level.tar.gz
> tar xzf perl-darwin-2level.tar.gz
> mv perl-darwin-2level ~/my-favorite-name
That's all. Check out your perl works:
> ~/my-favorite-name/bin/perl -v
This is perl 5, version 20, subversion 1 (v5.20.1) built for darwin-2level
# cpanm is already installed. Install your favorite cpan module.
> ~/my-favorite-name/bin/cpanm LWP::UserAgent
See Dockerfile and mac.sh.