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