in reply to Which loop should I use?

i guess i would do it like this .... hope this helps Paul
#!/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