in reply to AJAX and Perl
a good idea might be using HTML::Prototype so you don't have to write AJAX by hand... and if you are using Mozilla (Firefox), the Web Developer Toolbar might help developing Javascript code.
i hope this helps...