in reply to js variables to perl?

Also, have a look at HTML::Prototype or Steve Comrie's RPC example at http://www.unobserved.org/misc/rs/