in reply to Re^6: How the auto-increment operator works?
in thread How the auto-increment operator works?
For essentially the same reason that ++75 is 76 and not 86:
Why would a "carry" ("B" -> "C") be generated by incrementing from "e" to "f"?c:\@Work\Perl\monks>perl -wMstrict -le "my $s = '75'; printf qq{++'$s' -> }; ++$s; print qq{'$s'}; " ++'75' -> '76'
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: How the auto-increment operator works?
by zapdos (Sexton) on Aug 02, 2020 at 01:20 UTC | |
by LanX (Saint) on Aug 02, 2020 at 02:13 UTC | |
by AnomalousMonk (Archbishop) on Aug 02, 2020 at 02:45 UTC | |
by zapdos (Sexton) on Aug 02, 2020 at 03:17 UTC | |
by AnomalousMonk (Archbishop) on Aug 02, 2020 at 07:27 UTC | |
by LanX (Saint) on Aug 02, 2020 at 16:02 UTC | |
| |
by zapdos (Sexton) on Aug 02, 2020 at 07:48 UTC | |
by LanX (Saint) on Aug 02, 2020 at 13:59 UTC |