do{ Win32::GUI::DoEvents(); } until ($::MSG{"Dialogue"}{"Text"} ne ''); #### $dlg->Dialog(); print "User Entered:".$::MSG{"Dialogue"}{"Text"}."\n";