Don't ask to ask, just ask | |
PerlMonks |
Re^4: refering to 1 shared hash from anotherby Random_Walk (Prior) |
on Apr 24, 2013 at 12:46 UTC ( [id://1030388]=note: print w/replies, xml ) | Need Help?? |
Output
UpdateI just read the docco for threads::shared and found this gem, which explains your issue: Using refaddr()) is unreliable for testing whether or not two shared references are equivalent (e.g., when testing for circular references). Use is_shared(), instead:There is more detail, and an example of the correct way to test in said docco Cheers,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|