in reply to Re^2: communication across threads using hash of hashes
in thread communication across threads using hash of hashes

Do you think this is because of the separate package ??

Kinda hard to tell from your snippets, but almost certainly yes. If you were using strict and warnings, I would expect to see some other messages that would clarify things greatly.

You could try declaring %Totals as a global variable. Whilst they are generally to be avoided, they actually fit quite well with the concept of thread-shared data.

our %Totals :shared;

You'll need to do this in every package (scope) where you use 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.
"I'd rather go naked than blow up my ass"