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:
In reply to Re: Run and Stop another program in perl
by eyepopslikeamosquito
in thread Run and Stop another program in perl
by fast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |