raphael() wrote:
I want to do work on all elements of an array simultaneously.
What kind of data/reality does your array represent?
I tried Parallel::ForkManager. It works well when you don't need to update global value like downloading multiple files at the same time. I want something like above that forks while updating global values. Are threads/fork what I am looking for?
If you have a list of file names that need to be processed, and that can be handled independently, then always go for fork-join, don't even consider threading.
The parent will detect when the child is finished, and can look in a predefined location (I normally use a database) for the result.
If your audience is not a bunch of twitchers, then stay away from threading. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/