All right, create a sub called "KillProc()" and then put an if statement in that sub. Execute block A if it's Linux, or execute block B if it's Windows. Portable. Done!
Why should I bother? I already have a satisfactory solution with Proc::Background, and I wrote that I am happy with it. It's that simple. Why should I even consider to write the same logic myself?
> It's that simple!
Brilliant and now please show us working code where taskkill can handle an ID you get from fork ...
PS: yes, I downvoted you now.