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


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

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.

  • Comment on Re^6: Generate the perl sequence 1, 11, 111, ....

Replies are listed 'Best First'.
Re^7: Generate the perl sequence 1, 11, 111, ....
by matrixmadhan (Beadle) on Oct 14, 2008 at 15:39 UTC
    By making it easier to read, it can do nothing but help.

    Perfect. I agree. Many thanks for that.