{"id":22221,"date":"2014-08-20T08:30:55","date_gmt":"2014-08-20T13:30:55","guid":{"rendered":"http:\/\/blog.cpanel.net\/?p=22221"},"modified":"2014-08-20T08:30:55","modified_gmt":"2014-08-20T13:30:55","slug":"bro-code-514-a-bro-always-updates-his-custom-perl-modules","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/bro-code-514-a-bro-always-updates-his-custom-perl-modules\/","title":{"rendered":"Bro Code #514 – A Bro Always Updates His Custom Perl Modules"},"content":{"rendered":"
If you use custom code on your cPanel & WHM servers, please read this message! Without further action on your part, your custom code may break in cPanel & WHM version 11.46.<\/strong><\/p>\n You can find an instance of Perl 5.14 on your cPanel & WHM servers in the following location: For more information about Perl on cPanel & WHM servers, read our\u00a0Perl Environments and Modules<\/a>\u00a0documentation.<\/p>\n Custom modules that you previously compiled with the buildperl system<\/a>\u00a0will\u00a0not<\/strong>\u00a0function properly in cPanel & WHM version 11.46 because the module was built against an older version of Perl.\u00a0However, before you recompile all of your modules, you should check whether cPanel & WHM will already include your modules in version 11.46. We have added many modules to the\u00a0list of modules that cPanel ships<\/a>, and expect that cPanel & WHM will now ship with the majority of the modules that developers built with this tool.<\/p>\n To test whether the module that you need already ships with cPanel & WHM, run the following command: For example, LWP is a common module that was compiled against buildperl. cPanel & WHM already ships with LWP version 6.05 with Perl 5.14, as shown by the following command and its output: If you discover that cPanel & WHM does not ship with a common CPAN module that you need, let us know. While it is possible to install custom modules to the \/opt\/cpanel\/perl5\/514\/site_lib library with the \/usr\/local\/cpanel\/3rdparty\/perl\/514\/bin\/cpan command, doing so will cause you further problems down the road, when cPanel switches to an even newer version of Perl. We would much rather ship your custom modules for you, and manage their updates, than force our customers to recompile modules themselves!\u00a0Please tell us<\/strong> which CPAN modules that you would like us to ship by either leaving us a comment here or sending an email to\u00a0integration@cpanel.net<\/a>.<\/p>\n We expect to have a production release of cPanel & WHM version 11.46 ready in October 2014.\u00a0If you would like to get access to an early release of this change, we expect to ship one in September 2014. To receive announcements about this early release, subscribe to our EDGE users mailing list<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" If you use custom code on your cPanel & WHM servers, please read this message! Without further action on your part, your custom code may break in cPanel & WHM version 11.46.<\/p>\n","protected":false},"author":77,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49],"tags":[973,429,45],"class_list":["post-22221","post","type-post","status-publish","format-standard","hentry","category-products","tag-11-46","tag-perl","tag-proddevsec"],"acf":[],"yoast_head":"\n
\nIn version 11.46, cPanel & WHM will ship with binaries that we have compiled against Perl version 5.14.4. Previously, code that was compiled against cPanel binaries used Perl 5.6. Because of this, the upgrade to Perl 5.14.4\u00a0will have a direct effect on any custom Perl code that you execute from cPanel binaries. It is extremely important that you test your plugins and hook code against Perl 5.14.4 to be certain that it continues to work correctly.<\/p>\n
\n\/usr\/local\/cpanel\/3rdparty\/bin\/perl<\/code><\/p>\n
Custom modules<\/h2>\n
\n\/usr\/local\/cpanel\/3rdparty\/bin\/perl -MMy::Module -E'say $My::Module::VERSION'<\/code><\/p>\n
\n\/usr\/local\/cpanel\/3rdparty\/bin\/perl -MLWP -E'say $LWP::VERSION'
\n6.05<\/code><\/p>\nTell us! Tell us! Tell us!<\/h2>\n