Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.


In reply to Re^7: next unless - and then 'until' by fishbot_v2
in thread next unless - and then 'until' by Win

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found