in reply to Perl Command Prompt while executing perl script through cgi
says use Win32::SetChildShowWindow(0);