If you get "Can't locate local/lib.pm" ,  you can install the missing perl library using cpan.
cpan local::lib

If cpan is missing you should first install it using:
yum install cpan

If you get Can’t locate Time/HiRes.pm Perl , you can install the missing module using:
yum install perl-Time-HiRes

To can install Bundle::LWP

Use:

perl -MCPAN -e 'install Bundle::LWP'

If you get "Can't locate CPAN.pm in @INC" <- click here

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

When you install CSF  firewall you my have this error.
*WARNING* URLGET set to use LWP but perl module is not installed
csf and lfd are not disabled!

To fix this install perl-libwww using:
yum install -y perl-libwww

To restart CentOS network use:
systemctl restart network

To change the CentOS host name you should edit:
/etc/sysconfig/network

You can use your favorite editor (like vi)
vi /etc/sysconfig/network

* i prefer mcedit

Change Hostname: (replace 01.direkthost.net with your own hostname)
HOSTNAME=01.direkthost.net

Also edit, and add your own hostname:
/etc/hosts

Restart your network  (CentOS 6 / CentOS 7)
/etc/init.d/network restart
systemctl restart network