New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when forgetting {} to interpolate range in regex #5204
Comments
From trizenx@gmail.comSeems like interpolated values for range boundaries are not parsed correctly. To illustrate the issue, let's consider the following code: my $width = 5; The expected output should be: (abcde fghij klmno) but currently we get a parse-time error: Malformed Range |
From @timoIf you want to use interpolated ranges, you'll have to use {1..$width}. However, the error message is clearly wrong and could definitely be |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetStill present in rakudo 405519: <Zoffix> m: my $width = 5; my $str = 'abcdefghijklmno'; say ($str ~~ /(. ** 1..$width)+/).values».Str; |
From @zoffixznetLTA error fixed in rakudo/rakudo@713ad510d3 -- |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127801 (status was 'resolved')
Searchable as RT127801$
The text was updated successfully, but these errors were encountered: