Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Increment by 2 and by 1 in same loop.

by Anonymous Monk
on Apr 16, 2013 at 09:53 UTC ( #1028858=note: print w/ replies, xml ) Need Help??


in reply to Increment by 2 and by 1 in same loop.

while( something ) { $anything++; $you += 2; $want += 11teen; }


Comment on Re: Increment by 2 and by 1 in same loop.
Download Code
Re^2: Increment by 2 and by 1 in same loop.
by sundialsvc4 (Monsignor) on Apr 16, 2013 at 11:17 UTC

    Definitely.

    Don’t make it clever .. always make it clear.   The odds are always good that someone (else) will come behind you and have to modify that piece of code.   Make it obvious what the code does, and easy to change it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-07-14 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (255 votes), past polls