I am trying to call a perl script from my HTML page. The way am trying to do is to call the url of the perl script located on the server.
Here is the piece of code:
HTML:
var fname = "Bob";
var url='http://xxx.com:30000/cgi-bin/abc.pl?title=fname';
window.open(url,"_self");
The way am trying to retrieve it in perl as:
Perl:
print "$ARGV[0]\n";
Now, I have 3 questions:
- I think this is the correct way to pass the variables but am not able to print the argument in perl.
- If i want to pass another variable lname, how do i append it to the url?
- My window.open should open the output in the same window, since it uses the parameter
_self
. Still it doesn't.
Could anybody point out the problems?
Thanks, Buzz