use Win32::API; $ShowWindow = new Win32::API("user32", "ShowWindow", [P, N], N); $ShowWindow->Call($hw, 0);