in reply to
Updating Perl/Tk Canvas based on network input
Tk::fileevent
might help you - if the socket is readable, you can update the rectangles.
Comment on
Re: Updating Perl/Tk Canvas based on network input
In Section
Seekers of Perl Wisdom