in reply to Re: Algorithm for "Incrementing" strings
in thread Algorithm for "Incrementing" strings

True, although the more digits $val has, the longer your do loop will have to spin to get past 'XAAAAAAAAAAAA' and up to 'XBBBBBBBBBBBB', won't it?
  • Comment on Re^2: Algorithm for "Incrementing" strings

Replies are listed 'Best First'.
Re^3: Algorithm for "Incrementing" strings
by pme (Monsignor) on Feb 11, 2015 at 18:35 UTC
    If we always skip vowels then we never have vowels in the string. Should we replace vowels in the string in the very beginning?

      Ok, change 'XAAAAAAAAAAAA' to 'WZZZZZZZZZZZZ': perl -E '$a="WZZZZZZZ"; $a++; say $a' => 'XAAAAAAA'

      --MidLifeXis

        Ooops, that's true. We have to polish the value after incrementing another way. Not_a_Number provided excellent solution below 1116376.