I'm very new to this Parallel::ForkManager module in Perl and it has a lot of credits, so I think it support what I need and I just haven't figured out yet.
What i need to do is in each child process, it writes some updates into a global hash map, according to the key value computed in each child process. However, when I proceed to claim a hash map outside the for loop and expect the hash map is updated after the loop, it turns out that the hash map stays empty. This means although the update inside the loop succeeds (by printing out the value), outside the loop it is not.
Does anybody know how to write such a piece of code that does what I want? I appreciate the help.