in reply to How to clear the buffer: Win32::GUI

Huh? What buffer?  $w->PostQuitMessage() ??