in reply to Unable to emulate fork functionality on Windows

If you redefine your problem to be "I want to run N commands concurrently", then your entire program could be just:

use strict; use threads; my @drive_dir = ( 'perl /a/dir_file_create.txt' , 'perl /b/dir_file_create.txt', 'perl /c/dir_file_create.txt' ); my @kids = map async{ system $_; }, @drive_dir; $_->join for @kids;

Which will work without requiring fork emulation or cygwin.


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.