in reply to Tk::text input problem

Take a look at the documents for Tk::Text, Look for the method get.
If your only interested in one line of input you should probably use Tk::Entry instead, it's quite a bit simpler to use than a full Text widget and has better handling for input validation.