|
|
| more useful options | |
| PerlMonks |
Shared objects and refcount/weaken bug?by menth0l (Scribe) |
| on Mar 01, 2012 at 09:01 UTC ( #957130=perlquestion: print w/ replies, xml ) | Need Help?? |
|
menth0l has asked for the
wisdom of the Perl Monks concerning the following question:
In following example i'm testing several cases where shared object is assigned to shared hash. I observerd that if i use refcount on object reference or weaken on reference inside the shared hash after assignment this object fails to destroy.
My output is: My main concern is that i can't use weaken on my shared objects inside a hash. I'm using: ActiveState Perl 5.12.4 threads 1.86 threads::shared 1.40 Devel::Refcount 0.09 Scalar::Util 1.23 Is this a bug? And is it possible to keep weak references to shared objects inside a hash?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||