http://www.perlmonks.org?node_id=458713


in reply to js variables to perl?

Not sure if you want to get this advanced, but have you ever heard of Sajax? It's a way to define perl subroutines on the server that you can then interact within javascript (on the client). I've used it for my company's intranet in 2 pages the last 2 weeks. Saves all the code to submit the page and then fill hidden variables and then process with javascript code on the submitted page.

Also works with python and php. Examples provided in link above.