I posted a note yesterday but did not get a satisfactory answer to my question. Let me rephrase the problem as follows.
Assume I have window created with Win32::GUI that is used to collect some initialization data from the user. The window contains a number of labels and textfields plus an OK and a CANCEL button. The CANCEL button terminates the window. I want the OK_Click sub to check the textfields for valid input. If the input is valid terminate the window. If the input has errors make the an Error label in the GUI window visible and change the Error Label Text to the name of the error. What is the best way to accomplish this task? Syl