in reply to How to refresh content within div in perl CGI ?
For that you need Ajax (JavaScript), not Perl directly. jQuery is a popular option and one I like. Search here for more examples of Ajax+Perl.