Undefined subroutine &Scalar::Util::weaken

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

  2Comments

  1. Tim   •  

    You rock! I’ve hit this problem and had trouble figuring out what CPAN magic elf was sick. Thanks!

  2. Rich   •  

    Thanks, that was just what I needed.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>