Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Are the scripts interpreted or compiled?

by Juerd (Abbot)
on May 31, 2002 at 10:53 UTC ( [id://170666]=note: print w/replies, xml ) Need Help??


in reply to Are the scripts interpreted or compiled?

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://170666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-03-29 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found