Undefined subroutine &Scalar::Util::weaken

01st Jan 2012Programming, Perl

Ever had the problem in Perl:

Undefined subroutine &Scalar::Util::weaken called at

This is caused by a version of Scalar::Util that is perl only and doesn’t implement the weaken function (ref).  To install the XS version of Scalar::Util use cpan and run:

force install Scalar::Util

No Comments Comments Feed

Add a Comment