answersLogoWhite

0


Best Answer

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

11y ago
This answer is:
User Avatar

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.


Various object oriented programming languages?

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


What do you call java and javascript?

Well you get java as java and javascript as iava.


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

Related questions

What has the author Ellie Quigley written?

Ellie Quigley has written: 'PHP and MySQL by example' -- subject(s): Design, MySQL (Electronic resource), PHP (Computer program language), Web databases, Web site development 'Complete PERL Training Course, The' 'Unix Shells by Example (By Example)' 'PERL by example' -- subject(s): Perl (langage de programmation), Perl (Computer program language), Langage programmation, PERL 'JavaScript by example' -- subject(s): JavaScript (Computer program language) 'JavaScript by Example'


What has the author R Allen Wyke written?

R. Allen Wyke has written: 'Fundamentos de Programacion En Perl' 'JavaScript unleashed' -- subject(s): JavaScript (Computer program language)


What has the author Les Bate written?

Les Bate has written: 'Perl' -- subject(s): Perl (Computer program language), Web site development 'Perl Web development' -- subject(s): Perl (Computer program language), Web site development


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 is java program on computers?

#!/usr/bin/perl print 'java program';


Various object oriented programming languages?

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


What do you call java and javascript?

Well you get java as java and javascript as iava.


What is the computer program Perl and how do you use it?

Perl is a programming language, and to use it requires many hours of reading about it and of practice writing programs in it.


What has the author Michael Schilli written?

Michael Schilli has written: 'Perl Power!' -- subject(s): Perl (Computer program language)


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.


What has the author Larry Wall written?

Larry Wall has written: 'Programming Perl' -- subject(s): Perl (Computer program language), Programming languages, Programming Languages, Computadores (software), PERL


How can one learn how to program the JavaScript confirm dialog box into their code?

There are a number of ways in which one can learn how to program the JavaScript confirm dialog box into their code. One way is by reading the relevant tutorials on the website JavaScript Kit.