Click here to Skip to main content
15,075,944 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 :

<title>Run Scriptings</title>

<script language="JavaScript" type="text/javascript"


PERL File :

use Cwd;
use CGI;
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.


1 solution

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