Red Hat Enterprise update Broke my Perl weak references!

My credit card processing interface (to CyberSource) broke today after we updated our Red Hat enterprise with the latest Perl. Apparently, the problem I hit was not all that rare.

The error I got was (approximately) “Version of perl at [path-to-perl] doesn’t support weak references at line 2447.” 

package SOAP::Server;


use Carp ();
use Scalar::Util qw(weaken);
sub DESTROY { SOAP::Trace::objects('()') }

sub initialize {


Thanks to the gang at perlmonks, the fix was pretty simple:

perl -MCPAN -e shell
force install Scalar::Util

This worked for me, if you have the same problem, well I hope it works for you, too!

Facebook comments: