note
clintp
<blockquote><blockquote><i>But a redo (just like next and last is just a glorified goto.</i></blockquote><i>I consider this statement blatently false and missleading.
<ul><li>redo FOO will only work if the label FOO exists at some surrounding loop block</ul></i></blockquote>
<p>
I consider this statement to be inaccurate and not quite pendantic enough for flaming someone! Observe:
<code>
sub bar {
no warnings 'exiting';
redo FOO;
}
FOO: {
print "Hey!";
bar();
}
</code>
The redo worked and the label did not exist in a surrounding loop block.
181789
181975