Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to run a PERL script when one clicks on a link on a webpage.
I have pasted the html file where the .pl file is called. Also i have pasted the perl file below.

HTML File :

XML
<html>
<head>
<title>Run Scriptings</title>
</head>

<script language="JavaScript" type="text/javascript"
src="http://172.19.98.182:8080/haha.pl"
<script>

</body>
</html>



PERL File :

#!/usr/bin/perl
use Cwd;
use CGI;
$pwd=cwd();
print "Content-type: text/html\n\n";
print "document.write('I rule the World');";
#system("mkdir $pwd/DEEPAK");
exit 0;




But when i click on the link ... nothing appears. A new window having the title as "Run Scriptings" comes and nothing appears. No print statements ... nothing .!!

Even if i write any garbage code (afsfsfsfdh) into the perl file ... on clicking on the link ... it doesnlt show any error as well ... Just seems its not able to read and execute the script.

Please suggest.

Thanks
Deepak
Posted

1 solution

 
Share this answer
 
Comments
deepakrout1987 7-Nov-11 2:38am    
tried it beforehand ... never worked ...!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900