Thread::Queue would work just as well, though it would consume a little more memory without some additional code to limit the size of the queue.
But for the OPs 10k items and 20 threads that would still come in at less than 40mb.
In reply to Re^3: Using Perl to run a Windows command-line utility many times with ordered, parallel execution
by BrowserUk
in thread Using Perl to run a Windows command-line utility many times with ordered, parallel execution
by Jim
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |