http://www.perlmonks.org?node_id=11120241


in reply to Re^11: How the auto-increment operator works?
in thread How the auto-increment operator works?

> , and generate a "carry" into the next left column (or a new left column character if it's already the leftmost) when they wrap:

Addendum: And the new left column will be of the same "type" like the old leftmost.

# leftmost is ... DB<14> $_="z"; print ++$_ # lowercase aa DB<15> $_="z9"; print ++$_ # ... aa0 DB<16> $_="zZ9"; print ++$_ # ... aaA0 DB<17> $_="Zz9"; print ++$_ # uppercase AAa0 DB<18>

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^13: How the auto-increment operator works?
by zapdos (Sexton) on Aug 02, 2020 at 23:26 UTC
    Thank you too brother. ;-)