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.