http://www.perlmonks.org?node_id=539643


in reply to 'system' hangs in a Windows Tk app

I happen to do almost exactly what you ask - I place a button on Tk and when user presses it, I invoke VIM.

In order to achieve this, you need

Win32::Process::Create($pobj, "$args[0]", "@args", 0, NORMAL_PRIORITY_CLASS, ".") || die "can't Win32::Process::Create: (\@args=[@args])". Win32::F +ormatMessage(Win32::GetLastError());
See proper documentation.

Also, using Tcl::Tk as a replacement to perlTk will give you many advantages.

Best regards,
Courage, the Cowardly Dog