http://www.perlmonks.org?node_id=536613


in reply to Re^5: next unless - and then 'until'
in thread next unless - and then 'until'

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^7: next unless - and then 'until'
by fishbot_v2 (Chaplain) on Mar 14, 2006 at 17:11 UTC
    What is wrong with nested while loops?

    Nothing. They are great. I have no idea what you are doing with them in your example. As far as I can see, they are pointless.

    What is wrong with using next statements within the while loops?

    Nothing, that's what they are for. I have no idea what you are doing with them in your example. As far as I can see, they are pointless.

    What is wrong with instructing the resumption of the outermost while loop?

    Well, you are telling it to resume what it is already doing? It's wrong in the sense that it's entirely pointless. You don't have to tell a loop to loop. Just let it loop.

    There isn't anything wrong with any of the basic concepts here, rather the problem is that you've pasted them randomly into lump of code that is surely without function or meaning. Your description of this code as a dream is entirely appropriate.

Re^7: next unless - and then 'until'
by virtualsue (Vicar) on Mar 14, 2006 at 16:31 UTC
    If there is no problem, nothing wrong with anything you are doing, nor with any of the ideas that you have about how Perl (and programming) works, why are you here?