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
In Section
Seekers of Perl Wisdom