in reply to Re^4: Is this a job for a fork?
in thread Is this a job for a fork?
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,
Rich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Is this a job for a fork?
by thundergnat (Deacon) on Jul 13, 2010 at 20:00 UTC |