in reply to perl/tk interactive text widget

Their was/is a module in the X11 namespace, something like TkPerlConsole that will do the job.

Alternatively it is trivial to re-direct STDOUT (an example can be found in Tk::Stderr) to a text widget. From a text widget you can pass command lines with arguments back to the underlying shell.

jdtoronto