in reply to I need to pass a URL from a java script to a PERL script

Though not being a Perl question, I'll offer some considerations.

Hope that helps.