#!/usr/bin/perl -w use strict; my $count = 10; for(my $i=0;$i<$count;$i++) { print "Dollar count = " . $i . "\n"; }
The output is fox_m@illegal:~$ ./quick.pl Dollar count = 0 Dollar count = 1 Dollar count = 2 Dollar count = 3 Dollar count = 4 Dollar count = 5 Dollar count = 6 Dollar count = 7 Dollar count = 8 Dollar count = 9
In reply to Re: Which loop should I use?
by pjanzen
in thread Which loop should I use?
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |