in reply to Test::Deep - weak references are not implemented

You probably have two versions of Scalar::Util installed. The .pm file for the version you're loading can't find its associated .so file, so you're not getting the XS version which adds weakref support.

If you search your file system for Util.pm and Util.so, you'll probably find they're in very different places. Removing the old versions and reinstalling from the CPAN will likely solve the problem.

  • Comment on Re: Test::Deep - weak references are not implemented

Replies are listed 'Best First'.
Re^2: Test::Deep - weak references are not implemented
by almut (Canon) on Feb 01, 2008 at 20:49 UTC

    Good hypothesis. And in fact, when moving away Util.so in all relevant places, I can reproduce the problem with Test::Deep 0.096 — but not with 0.100  (so, the note in the CHANGES file seems to be correct, with respect to the current version no longer insisting on weakref support).