- or download this
foreach (@array) {
dosomethingto($_);
}
- or download this
for (my $i = 0; $i < @array; $i++) {
dosomethingto($array[$i]);
}
- or download this
my $fs = '';
for (my $f = 0; $f < 10; $f++) {
...
redo if length($fs) == 6;
}
print "fs: $fs\n";
- or download this
my $gs = '';
FOR_INIT:
...
goto FOR_NEXT;
FOR_LAST:
print "gs: $gs\n";