in reply to C-style for loop
Someone good at setting up efficiency tests, may find one better than the other in terms of what is fastest.#!/usr/bin/perl for (my $i = 0; $i <= 100; $i += 5) { print($i, "\n"); } print "\n"; for (0..20){ print 5 * $_,"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: C-style for loop
by zentara (Cardinal) on Nov 15, 2008 at 19:31 UTC |