in reply to cgi and javascript

You can use XMLHttpRequest to actually have a client-side JavaScript send and receive data from a server-side Perl script without refreshing the page. It is actually really easy to implement and allows you to do a lot of cool things.