If you get this error you have to install CPAN.
Use:
yum install cpan