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.
|
|---|