cbrauner has asked for the wisdom of the Perl Monks concerning the following question:

i use a simple window with win32-gui checking the Events is done with follwoing while loop:
while((Win32::GUI::DoEvents() != -1) { }
how i can leave whis while loop (eg getting a -1 for DoEvents()) ?

Replies are listed 'Best First'.
Re: how to leave a Win32::GUI::DoEvents() while loop ?
by Anonymous Monk on Aug 20, 2009 at 13:17 UTC
    while(1){ last if Win32::GUI::DoEvents() != -1; last if $win->PostQuitMessage; }
      i will try it