Skip Menu |
Report information
Id: 131517
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Perl5-ism regex range detector hides a more useful error
Download (untitled) / with headers
text/plain 646b
https://irclog.perlgeek.de/perl6/2017-06-06#i_14692778 A more useful error in this case would be to say that quotes aren't special in meta chars; and the "escape it" message should probably mention "with backslash", so the user doesn't think they can use quotes to escape specialiness of the `-`: araraloren m: say "ABC/as" ~~ m/<-["/" "-" "."]>+/; camelia rakudo-moar e0f68e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unsupported use of - as character range; in Perl 6 please use .. for range, for explicit - in character class, escape it or place it as the first or last thing␤at <tmp>:1␤------> 3say "ABC/as" ~~ m/<-…»


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org