In Perl, the expression "aa" .. "bb"
creates a list with the strings:
aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az ba bb
In Raku, however, (at least with Rakudo v2021.08), the same expression creates:
aa ab ba bb
Even worse, while "12" .. "23"
in Perl creates a list of strings with the numbers 12, 13, 14, 15, ..., 23, in Raku the same expression creates the list ("12", "13", "22", "23")
.
The docs seem to be quite silent about this behaviour; at least, I could not find an explanation there. Is there any way to get Perl's behaviour for Raku ranges?
(I know that the second problem can be solved via typecast to Int. This does not apply to the first problem, though.)