note
imp
The point of [doc://redo] is that it does not advance the iterator.
<blockquote>
The redo command restarts the loop block without evaluating the conditional again.
</blockquote>
<code>
my $redid = 0;
my @list = (1..5);
xyz : for (@list) {
print;
redo if $_ == 3 && ! $redid++;
}
# Output: 123345
</code>
618798
618823