jyoshv has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks, I have a perl script thats spaws many processes and each process executes gzip command on a huge log file. Now I want to be able to somehow record the result of the command excecuted by each process in a single datastructure.( Result -- as in if the command failed or went thru successfully. ). After all the processes are done executing, the parent process should take this info and continue its processing. I want to know which data structure to use and how do I share it among all the child processses and make it avaliable to the parent process aswell. Thanks.
  • Comment on many processes writing to the same datastructure

Replies are listed 'Best First'.
Re: many processes writing to the same datastructure
by ghettofinger (Monk) on Jan 14, 2005 at 17:48 UTC
    Either a relevant section of your code or the code in its entirety would help enormously. Also consider formatting your question for easy readability. Formatting tips can be found here.

    Regards,
    ghettofinger