in reply to Perl - TK - Listbox insertion problem
You can't share variables across forked processes so $line in the socket polling process is not the same $line used by Tk.