I want a js function to call a Perl script residing on a server.
The Perl script will return a string, to be used by the js.
Pseudo code:
<script>
stringvar = perlfunc_on_ser ver(stringarg)
document.write( stringvar)
</script>
Can stringvar above be a url?
The perlfunc_on_ser ver could take the form of a GET,
like https://www.myserver.com/cgi-bin/per...?arg=stringarg
Any other kludge is okay, as long as it works.
I'm very experienced with Perl, but a newbie to js.
Source code would help. Thanks.
The Perl script will return a string, to be used by the js.
Pseudo code:
<script>
stringvar = perlfunc_on_ser ver(stringarg)
document.write( stringvar)
</script>
Can stringvar above be a url?
The perlfunc_on_ser ver could take the form of a GET,
like https://www.myserver.com/cgi-bin/per...?arg=stringarg
Any other kludge is okay, as long as it works.
I'm very experienced with Perl, but a newbie to js.
Source code would help. Thanks.
Comment