I use threads in this case and I've always had good results (despite what some people seem to think about Perl's support for threads).
Here's a quick Windows example. Both methods will count simultaneously (instead of counting from 1 to 20 in succession):
#######################
use strict...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.