Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Weak references are not implemented

by samtregar (Abbot)
on Jan 24, 2005 at 23:28 UTC ( #424738=note: print w/replies, xml ) Need Help??

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)'


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://424738]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-02-26 21:32 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (117 votes). Check out past polls.