in reply to Accessing perl script through browser
If you want your code (or at least the CPU-intensive bits) to run browser-side, you should probably learn Javascript, and depending on what you're doing, maybe some other things such as manipulating SVG.