in reply to Doing two things at once, fork question.

No, if you fork, then the two processes are separate and won't share an array. You could use threads but there is a much sexier technique that seems a much better idea for this situation: Redirect the output to a file and then read and process the output from that file when you feel like it.

- tye        

  • Comment on Re: Doing two things at once, fork question. (IPC)

Replies are listed 'Best First'.
Re^2: Doing two things at once, fork question. (IPC)
by mhearse (Chaplain) on Mar 07, 2008 at 19:42 UTC
    Thanks for the input. I assume redirecting to a file would be done using a system call. I think I will do some reading on threads.pm. I'd like to get some experience with that.