Reinstall perl using the following command :
[root@server:~]# cd /usr/ports/lang/perl5
[root@server:/usr/ports/lang/perl5]# make install clean
Above commands could be used If easyapache, upcp or any other
cPanel scripts are giving perl error while executing them on a
FreeBSD server.