answersLogoWhite

0

You can call the Script like this,

<script type="text/javascript" src="perl_script.pl"></script>

So you just replace a regular Javascript Call ( .js ) with the .pl Script.

Inside the Perl Script you will have to use embraced Javascript Functions / Code,

f.e. like print "document.write.('Hello World');";.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: How do you call a perl program from javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How reliable is Perl?

This question is very nearly meaningless. Perl is a programming language; the reliability of any given Perl program depends on the talent and insight of the programmer.


What do you call java and javascript?

Well you get java as java and javascript as iava.


Various object oriented programming languages?

C++, Java, smalltalk, simula, perl, python, ruby, D, Eiffel, JavaScript...


Is PERL an interpreted or compiled programming language?

Perl is both compiled and interpreted language. In the traditional sense, Perl is a pure interpreted language. The reference Perl program is a prototypical two-stage interpreter: when a Perl script is invoked via #!/bin/perl (or similar), the perl interpreter performs a language parsing on the source code, creating an internal (to the perl interpreter) representation of program, which is then translated into binary code for execution. Every invocation of a perl program requires this translation/interpretation to be completed. There are several projects which can take perl source code and compile it down to a binary executable (that is, bypass the whole repeated translate/interpret phase each time). However, these are NOT complete - even the best can only manage about 95% of the perl code available. That is, these perl compiler are incomplete implementations of the Perl language. They can be very useful, but are not complete substitutes for the Perl interpreter. The real answer is that Perl was designed to be an interpreted language from the start; attempts to turn Perl into a compiled language are faced with the difficulty of Perl's sprawling syntax and complete lack of design for compilation, and thus, struggle to implement all the languages features in a compiler.


How do you run perl programs in editplus?

You should have perl installed in your machine.1.Open EditPlus2.Go to Tool->Configure User Tools..3.Click Add Tools>>Select Program4.Give Below OptionMenu Text:PerlCommand:C:\Perl\bin\perl.exe(Browse to location)Argument:$(FileName)Initial Directory:$(FileDir)5.Click Capture OutputWrite a new perl program and go to Tools->Perl to run the program