in reply to Perl GUI Refreshing

http://en.wikipedia.org/wiki/Message_loop_in_Microsoft_Windows

Win32::GUI::DoEvents()

Win32::GUI::UserGuide::FAQ