answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is PERL an interpreted or compiled programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are some facts about Perl?

Perl is a programming language. Perl is an interpreted programming language. Perl is very useful for shell scripts, application programming, and web applications. Perl is quite easy to learn. Perl can be, but does not have to be, object-oriented. Perl was created by Larry Wall. Perl has probably the best implementation of regular expressions in existence.


What is interpretor?

InterpreterInterpreters translate code one line at time, executing each line as it is "translated," much the way a foreign language interpreter would translate a book, by translating one line at a time. Interpreters do generate binary code, but that code is never compiled into one program entity. Instead, the binary code is interpreted each and every time the program executes. Some examples of interpreted programs are BASIC, QBASIC, and Visual Basic (version 5 of which has both a compiler and interpreter). Where compiled programs can run on any computer, interpreted programs can only run on computers that also have the interpreter.The Practical Extraction and Reporting Language, or Perl, is a script-based programming language whose syntaxparallels that of the C language but is an interpreted language; Perl can optionally be compiled prior to execution into either C code or cross-platform bytecode. Perl is easier to learn and faster to code in than the more structured (and compiled) C and C++ languages. When compiled, a Perl program can execute almost as fast as a fully precompiled C language program. JavaScript is another example of an interpreted script-based programming language.Interpreters offer programmers some advantages that compilers do not. Interpreted languages are easier to learn than compiled languages, which is great for beginning programmers. An interpreter lets the programmer know immediately when and where problems exist in the code; compiled programs make the programmer wait until the program is complete.There is a third method of generating code, and that's with an assembler, which is used in Assembly language. The assembler translates Assembly language into machine language.


All programs written for today's PCs are compiled as?

No, some of them are not compiled, but interpreted (languages perl, python, php, ruby etc,).


What Services are needed to program in Linux?

To program in linux, you just have to pick out a programming language, and use your favorite text editor or IDE to start programming. Most prodominantly, programs are written in C or C++ and can be compiled with the Gnu C Compiler (gcc) or g++ if your program is in an interpreted language, such as perl or python, you just have to make sure you have the interpreter installed.


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


What functions do interpreters perform in computer programming?

The role of an interpreter in programming is to interpret a high-level language into machine code. The interpreter reads each line of the program as it is being run, and converts it into machine code that the computer understands. Examples of interpreted languages are Python, Ruby and Perl. This differs from lower-level programming languages like C, where the code is compiled into machine code before it is run.


What is the most common programming language of CGI scripts?

Perl


What programming language has been called the duct tape of the Internet?

The answer is: Perl.


What is the Linux program language called?

Linux is a platform, and as such supports a myriad of programming languages. Of these languages C, C++, Java, Python and Perl are very popular, but there are many other programming languages. Some, like Python and Perl are 'interpretive' and similar in this respect to 'BASIC'. C and C++ are compiled, and Java sits somewhere between them.


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.


When was Programming Perl created?

Programming Perl was created in 1991.


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.