OK...I wont lie. I am a newbie. I really enjoy perl because it is a lot easier to learn than C but a lot more robust than VB, so I really enjoy Win32::GUI (WTG Aldo), but I am in a deadlock momentarily and could use a little help.
 
 
I need to append user input in a text field to a file.
I know how to do it in straight perl
 
$file = 'c:\filename.ext';
open (INFO, ">>$file");
@string = <INFO>;
close (INFO);
print @string;
 
but Win32::GUI is a different animal.
 
So I created the textfield
 
$text = $next->AddTextfield(-name =>"text",
       -top => 75,
       -left => 75,
       -size => [75,25],
       -prompt => "user input");
 
$button1 = $next->AddButton(-text => "Save", -name => 'Save');
 
but here is where I get lost. How do I pass the input from the textfield to a scalar to append to the file when I click the SAVE button?
 
RTFM's and links and even a swift kick in the head (if the answer is "DUH!") are welcome.
 
Thanks!
Chris

Reply via email to