Actually guys, I wonder if I could borrow your brains again. I'm happy to start a new thread if needs be but this is relevant to my previous query.
I didn't realise that sharing hashes would be different from sharing more complex data structures like a hash of hashes.
At the point of making a change to the shared object, is there a way of doing the following:
In thundergnat's code above:
# this $count{$param1} = $param1 * $param2; # to this for example $count{$param1}{$param2}{'count'} = $param1 * $param2;
Or in BrowserUk's code above:
# this ++$hashref->{ $key }; # to this for example ++$hashref->{ $key }->{'count'}
Is it possible to get around this apparent limitation in threads::shared as stipulated in their docs?
Once again I very much appreciate any help you can give me
Cheers,
RichIn reply to Re^5: Is this a job for a fork?
by richardwfrancis
in thread Is this a job for a fork?
by richardwfrancis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |