Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Weak references are not implemented

by samtregar (Abbot)
on Jan 24, 2005 at 18: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)'

-sam

Replies are listed 'Best First'.
Re^2: Weak references are not implemented
by holden (Initiate) on Oct 26, 2009 at 10: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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2019-07-18 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?