Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Simple adding numbers

by ww (Bishop)
on Mar 26, 2013 at 15:58 UTC ( #1025548=note: print w/ replies, xml ) Need Help??


in reply to Simple adding numbers

"Why the "1" at the end? "

Because the test in line 3 returns true until the last execution of line 6... at which time, $i is incremented to 1, and printed, BEFORE terminating the loop.

If you didn't program your executable by toggling in binary, it wasn't really programming!


Comment on Re: Simple adding numbers

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2015-07-04 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls