in reply to Re^8: How the auto-increment operator works?
in thread How the auto-increment operator works?
> > > If a new position is needed it'll adjust to the leftmost group.
> my $foo = "Zz"; print ++$foo; prints "AAa"
The A is a new position the next position to the right - which is causing the "carry" - is an uppercase character A.
> when one "z" character is incremented it produces "aa".
Again the left a is a new position, and the position to the right is a lowercase character.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^10: How the auto-increment operator works?
by AnomalousMonk (Archbishop) on Aug 02, 2020 at 02:45 UTC | |
Re^10: How the auto-increment operator works?
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 23:26 UTC | |
by zapdos (Sexton) on Aug 02, 2020 at 07:48 UTC | |
by LanX (Saint) on Aug 02, 2020 at 13:59 UTC |
In Section
Seekers of Perl Wisdom