Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: Are the scripts interpreted or compiled?

by Juerd (Abbot)
on May 31, 2002 at 10:53 UTC ( #170666=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > Are the scripts interpreted or compiled? - Answer contributed by Juerd

It is compiled on the fly. Perl is the most perfect combination of interpreter and compiler.

Your example script would be compiled to bytecode first, and the bytecode would be executed. The bytecode generated by the print statement is executed 100 times.

If you are concerned with efficiency, use for (1..100) instead of the C-style for.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-09-26 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (205 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!