#!/usr/bin/perl

# Loops
#

# Do something 5 times:
$i = 0;
while($i<5) { $i++; print "Loop number: $i\n"; }

# Here is another way: 
for ($i=0;$i<5;$i++) { print "Loop number: $i\n"; }

# What are the differences in how they run?
#




syntax highlighted by Code2HTML, v. 0.9.1