Thank you Robert, Your explanation makes sense to me. I will search the archives for your work-arounds.
And, by the way, the reason my posted code didn't work as advertised is that the first line of mainw.gui should read: $mainW = new Win32::GUI::DialogBox( Thanks again for the time and efforts you are devoting to the Win32::GUI project, /Leif