in reply to Re: scalars, references and queues
in thread scalars, references and queues

A note of caution. Using

my $href = { ... }; $DataQueue->enqueue(share($href));

Is dangerous, because whatever you put inside the anonymous hash, represented in your exampe by ..., will be silently discarded when you do share( $href ).

You must share the reference first, and then populate it.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."