in reply to bug in threads::shared or is it just me?
I confirm the behaviour in 5.10.1 & 5.8.9, and agree it looks like a bug to me.
What you are doing doesn't make a lot of sense to me, and I have difficulty trying to reason about what should be the 'correct behaviour' in that situation, but if the keys make it out of the sub, so should the values.
And as you are just returning a list of values, their origins in a 'locally shared hash' -- which is what doesn't make much sense to me -- shouldn't matter. In the list, they should just be values, regardless of their source.
|
---|