This is an interesting thread:
http://lists.centos.org/pipermail/centos/2014-April/141871.html about the problems you can find building perl modules for CentOS
releases (new or old).
I agree with John R. Pierce: cpan is very very bad tool ( in fact, I
hate it) to build perl modules for CentOS systems, breaks all other
By default rpm looks for the perl modules inside the rpm itself and throws dependency error if it is not found.
For eg., I have a perl script in the rpm that uses Crypt::DES perl module.
I have that perl module in the system (/usr/local/lib64/perl5/Crypt/DES.pm ) and this directory is included in @INC
When I try to install the rpm package: