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


in reply to Javascript and Perl... a match never made.

Why dont you try using a SSI to call thw CGI...

<!--#exec cgi="./cgi-bin/jserver.cgi?scrip=somescript"-->

or

<!--#include virtual="./cgi-bin/jserver.cgi?scrip=somescript"-->

Hope it helps...