in reply to Closing console window in Windows
maybe adding
use Win32; Win32::SetChildShowWindow(Win32::SW_HIDE); [download]