$j = 23; $i = $j; LOOP: while (1) { if ($index[$i] eq 'blah') { last LOOP; } elsif ($i == $#array) { $i = 0; } $i++; )