in reply to Weak references are not implemented

I've seen this happen and it was caused by using a copy of Scalar::Util which was compiled using an older version of Perl. Scalar::Util decides at install-time whether Perl has weaken() or not.

You can find out which copy of Scalar::Util you're using by looking at %INC:

   perl -MScalar::Util -MData::Dumper -e 'print Dumper(\%INC)'

-sam

Replies are listed 'Best First'.
Re^2: Weak references are not implemented
by holden (Initiate) on Oct 26, 2009 at 14:58 UTC

    Perhaps another (clumsily missed) cause can be user rights?

    I had the latest version of modules etc, and perl 5.8.5 (5.6.0+ required), and was still getting the "weak references not implemented" error.

    After trying (in vain) the suggestions here I ran the script as root, and voilá! Problem gone! D'oh!

    HTH, Tony