in reply to Do I need threads?

You don't necessarily need threads, but you can certainly use them to good effect.

use threads; ## start the first command going my $t1 = async { return qx[ ... ]; }; ## Start the second command running. my $t2 = async { return qx[ ... ]; }; ## wait for the first to finish and retrieve the output my $output1 = $t1->join; ## wait for the second to finish and retrieve the output my $output2 = $t2->join;

Doing that in a loop rather than separately is quite trivial.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?