in reply to CGI::Ajax and html::template
I know it doesn't answer your question, but I find CGI::Ajax a false crutch. You should really look at using pure JS -- JQuery rocks. (You can see Re: Ajax/perl/javascript in perl for more).