Is it possible to execute Perl code from java script?

I have installed apache-tomcat for the same.

In which folder should I paste the html file and the Perl file (uses cgi module) ?

JavaScript runs on the client. The perl would run on the server. Tomcat has nothing to do with either of them.

You would need to use Ajax.
You can make a request to the server with javascript, and store the response in a javascript variable. The request could activate a perl script, located on the server.


the thread is over a year old.....

PS: i added a comment to both of your recent code snippets if you are interested.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.