in reply to javascript-perl interaction

In addition you may want to take a look at HTML-Prototype-1.48, which contains Prototype and script.aculo.us libraries.