On a fresh server, follow the below command to install perl modules.
#yum install perl-devel
#yum install perl-CPAN
Now, execute the following command to install a perl module:
# perl -MCPAN -e 'install Modern::Perl'
If you find the following error:
'YAML' not installed, will not store persistent stat. Then execute the following command:
#cpan
cpan>install YAML
#yum install perl-devel
#yum install perl-CPAN
Now, execute the following command to install a perl module:
# perl -MCPAN -e 'install Modern::Perl'
If you find the following error:
'YAML' not installed, will not store persistent stat. Then execute the following command:
#cpan
cpan>install YAML