in reply to GOTO statement. A better way?

First of all, did you see the preview option and use it? Posting your code twice in one node doesn't improve the readability or the understanding.

Second, your question is easily answered by perldoc -f next.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.