P is for Practical | |
PerlMonks |
Re: How the auto-increment operator works?by ikegami (Patriarch) |
on Jul 31, 2020 at 13:47 UTC ( [id://11120139]=note: print w/replies, xml ) | Need Help?? |
For the same reason that the following results in 100 instead of 00 (0).
If you exceed the range of the second position, it carries into the third position. To keep it to two digits, you need to take explicit action.
In Section
Seekers of Perl Wisdom
|
|