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

Hi I am using the parallel fork manager module to start 4 processes in parallel.I want the output of those 4 processes for doing some operations like writing into a excel/text file. I assigned the output to variables but i am unable to acess those variables after pm->finish command(out side the for loop). please explain me the simple way to retreive data from child processes so that i can acess those output even after the child process exits. I have gone through that cpan module but didnt get exactly what to do

  • Comment on Parallel::Fork Manger;want to parse the output of fork processes to excel using Spreadsheet::WriteExcel

Replies are listed 'Best First'.
Re: Parallel::Fork Manger;want to parse the output of fork processes to excel using Spreadsheet::WriteExcel
by jethro (Monsignor) on Nov 07, 2011 at 09:55 UTC

    1) Store the data into files

    2) Use a pipe

    3) Search CPAN for the string IPC and use a fitting module from that list. IPC means InterProcess Communication, which is what you want

Re: Parallel::Fork Manger;want to parse the output of fork processes to excel using Spreadsheet::WriteExcel
by Anonymous Monk on Nov 07, 2011 at 09:27 UTC