My guess would be that another loop would start and $i would initialize to $j again.. But i haven't played with BLOCK: type structs before. Really, instead of asking, you should throw some prints in there and test it out, then ask question if the results puzzle you.. no amount of ppl telling you what
will happen will take the place of the experience of experimentation...
$j=23;
$x = 0;
LABEL: for ($i=$j; $i<=$#array; $i++) {
print "top of loop: \$i = $i\n";
print "interation $x\n";
$x++;
if ($array[$i] eq "blah") {
print "\$i is blah\n";
last LABEL;
} elsif ($i == $#array) {
print "\$i == $#array\n";
$i = 0;
next LABEL;
} else {
next LABEL;
}
}
-Syn0