The technology that you're looking for is called
AJAX. It is based on having JavaScript on the browser use the
XMLHttpRequest object to query your web page for updates. When it finds an update the JavaScript then dynamically updates the current page.
CGI::Ajax is supposed to make setting this up easier. I haven't used it so I can't recommend it either way, but it may give you a place to start.