For people having trouble running the CPAN or MCPAN commands via command line or through the Perl Module manager in Webmin (meaning it fails to install via CPAN so it tried to install via source), you need to first install CPAN:
yum -y install perl-CPAN
Update CPAN if needed.
And the approximate sequence of commands thereafter: