Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> > > 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 In reply to Re^9: How the auto-increment operator works?
by LanX
|
|