in reply to How can I selectively refresh part of a page?
Perl/CGI runs on the server not on the client. So you have to send the whole page, if something changes serverside. JavaScript is designed to work clientside, so the answer is: use JavaScript.