Eyck has asked for the wisdom of the Perl Monks concerning the following question:
LOOP: ... ... ... redo LOOP unles($var)
Anyhoo... I haven't noticed what I've done, until recently I saw something like this: 'Label not found for "redo LOOP",
After some googling I found some old bug, that causes 'redo' to lost track of blocks if 'goto' is used. I don't use 'goto', but I figured that there may be some esoteric connection between my problem and bug #19061, and replaced 'redo' with 'goto', and the problem vanished.
So, the question would be - what's the difference between 'redo' and 'goto'?
And how would one go about hunting such bugs? Should one care at all? After all, I don't need such construct at all.
Title editted by tye to make it more than one word
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redo
by Abigail-II (Bishop) on Mar 11, 2004 at 13:31 UTC | |
|
Re: What's the difference between 'redo' and 'goto'? (label location)
by tye (Sage) on Mar 11, 2004 at 16:46 UTC | |
by Eyck (Priest) on Mar 12, 2004 at 07:33 UTC |