Here’s how I was able to add Perl modules. Login as root to do this:
Login to the perl shell
perl -MCPAN -e shell
On the perl shell, type install followed by the module name, e.g.
cpan> install LWP::Protocol::https
cpan> install JSON