Since you hardly write anything about your program or your
problem, except an "it doesn't work", not much can be said.
However, you should realize that programs using Tk are
event driven. You will have to turn data appearing on the
socket into an event. IIRC, there's a FileHandle widget for
Tk. You might be able to use sockets with that. Or you might
be able to use
BTW, you really should use better titles. "Perl/Tk" is a
*very* broad subject.