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


in reply to Re: Whats with the autoincrementation of a string
in thread Whats with the autoincrementation of a string

ok, so what about something that doest end with a "z" or a "9". Like will "zc" become "aad?"

  • Comment on Re^2: Whats with the autoincrementation of a string

Replies are listed 'Best First'.
Re^3: Whats with the autoincrementation of a string
by choroba (Cardinal) on Jun 18, 2013 at 20:06 UTC
    No, "zc" will become "zd". Similarly, 93 + 1 = 94, not 104.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      and something like "zaz" will become " aba" right?

        Nooo!!! The standard of arithmetic is going downhill nowadays! :-P

        z a z + 1 ------ z b a carry 1
        If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)