Using standard HTML/CGI techniques, you cannot. However, what you can do is use AJAX. That's a way of using Javascript in the background to communicate with the server. There, you can have Perl do whatever you need it to do and respond back. Then, you go ahead and have the Javascript take whatever action you need it to take.
This is the best of both worlds - you have the responsiveness of JS and the power of Perl.
- In general, if you think something isn't in Perl, try it out, because it usually is. :-)
- "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"