The stupid question is the question not asked | |
PerlMonks |
Re: Are the scripts interpreted or compiled?by Elian (Parson) |
on May 31, 2002 at 18:40 UTC ( [id://170802]=note: print w/replies, xml ) | Need Help?? |
Much as I like perl, this first answer is incorrect.
Perl is certainly not the most perfect combination if interpreter and compiler. It's arguable whether there is one, but if there is then what we have now isn't it. While, strictly speaking, perl does have a compilation phase, transforming your source into an intermediate internal representation, it doesn't produce natively executable code. Producing that native code is what's generally associated with compilation. Instead it produces the intermediate code and walks through it, interpreting it. Given the current state of the art (at this point only a few shells are truly interpretive, not turning their code into some intermediate form) perl comfortably fits the definition of "interpreter" (Also, perl doesn't produce and interpret bytecode. It produces and walks an optree, which is a different structure altogether)
In Section
Seekers of Perl Wisdom
|
|