Increment a numerical string

say my $s = "12345";
say ++$s;

# or Unicode. How about Sinhala?

say "෧෨෩෪෫ ", +"෧෨෩෪෫";
say "෧෨෩෪෫".succ, ' ', +"෧෨෩෪෫".succ;

Output:

12345
12346
෧෨෩෪෫ 12345
෧෨෩෪෬ 12346

Last updated