#!/usr/bin/perl for ($i=0; $i<3; $i++) { print "i = $i\n"; } # prints the following: # i = 0 # i = 1 # i = 2