Perl Monk, Perl Meditation | |
PerlMonks |
Re: Simple adding numbersby ww (Archbishop) |
on Mar 26, 2013 at 15:58 UTC ( [id://1025548]=note: print w/replies, xml ) | Need Help?? |
"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.
In Section
Seekers of Perl Wisdom
|
|