in reply to Run and Stop another program in perl

Given you appear to be running on Windows, another option is to use the Win32::Job module. An example of doing that can be found at:

  • Comment on Re: Run and Stop another program in perl