# New Ticket Created by Daniel Șuteu
# Please include the string: [perl #127801]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127801 >
Seems like interpolated values for range boundaries are not parsed correctly.
To illustrate the issue, let's consider the following code:
my $width = 5;
my $str = 'abcdefghijklmno';
say ($str ~~ /(. ** 1..$width)+/).values».Str;
The expected output should be:
(abcde fghij klmno)
but currently we get a parse-time error: Malformed Range