Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Generate the perl sequence 1, 11, 111, ....

by matrixmadhan (Beadle)
on Oct 14, 2008 at 09:48 UTC ( #716929=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Generate the perl sequence 1, 11, 111, ....
in thread Generate the perl sequence 1, 11, 111, ....

No, I don't mind at all. In fact, I would be glad to correct my mistakes and improve perl coding.

"That makes it more error-prone" - Did you mean the C style for loop syntax. I don't understand why that would be error-prone ?


Comment on Re^5: Generate the perl sequence 1, 11, 111, ....
Re^6: Generate the perl sequence 1, 11, 111, ....
by ikegami (Pope) on Oct 14, 2008 at 15:09 UTC

    I don't understand why that would be error-prone ?

    Simply put, the more code you have, the higher the possibility of including an error.

    Especially in this case, where there are many symbols packed into a small area and where there are many different common usage of the loop (start at zero, start at one, stop at X, stop before X, etc).

    By making it easier to read, it can do nothing but help.

      By making it easier to read, it can do nothing but help.

      Perfect. I agree. Many thanks for that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716929]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-12-28 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls