in reply to Terminate process tree in windows

While fork() does kinda work on Perl on Windows, it is only emulated by Perl. Windows only ever sees one Perl process, no matter how much you fork() from it. When you use taskkill, you kill off the one Perl process.

In my experience, it's best not to use fork() on Windows and use threads or plain subprocesses instead. This usually requires a different approach in the program though.