The cPanel recently announced that they will ship with a distribution of Perl 5.14.3. This version of Perl will be located inside the/usr/local/cpanel tree to avoid problems with the RPMs provided by the distro. While the installer will still require basic Perl, cPanel will no longer need /usr/bin/perl in order to function.
Based on specific needs cPanel recommend the following two options to change #!/usr/bin/perl at the beginning of your script:
1. If the script needs to function in all versions of cPanel (including versions where Perl 5.14 wasn’t provided), we recommend the following:
#!/bin/sh
eval ‘if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x — $0 ${1+”$@”}; else exec /usr/bin/perl -x $0 ${1+”$@”}; fi;’
if 0;
#!/usr/bin/perl
2. If the script needs to function only in 11.36 and later versions, you can simply change all of your scripts to point to the new version of Perl:
#!/usr/local/cpanel/3rdparty/bin/perl
Please take a note for further changes and prepare your perl scripts for upcoming cPanel version 11.36 to avoid any issues.