http://qs321.pair.com?node_id=802121


in reply to Passing data back to calling page

Here is a simple AJAX example that uses Perl for the backend. Like DStaal said, that's what you need to do exactly what you want.

OTOH if you don't have some good reason to keep the same page around, you could just use Perl to generate the HTML to begin with and reload the whole thing when you need the new data. Here is a tutorial for that.