in reply to Re: Re: GOTO considered (a necessary) evil?
in thread GOTO considered (a necessary) evil?
But a redo (just like next and last is just a glorified goto.I consider this statement blatently false and missleading.
- redo FOO will only work if the label FOO exists at some surrounding loop block
I consider this statement to be inaccurate and not quite pendantic enough for flaming someone! Observe:
The redo worked and the label did not exist in a surrounding loop block.sub bar { no warnings 'exiting'; redo FOO; } FOO: { print "Hey!"; bar(); }
|
---|
In Section
Meditations