[perl #127352] [BUG] Behavior of Regular Expressions Contained in a Constant with a Sigil

[email protected] ("Jan-Olof Hendig via RT") Tue, 13 Mar 2018 14:50:17 -0700
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
On Fri, 05 Aug 2016 18:04:36 -0700, [email protected] wrote:
> Still present today:
> 
> <Zoffix> m: my $sepreg = rx/(<[\\/]>)/; my $filenameW =
> "c:\\g\\b.mp4"; $filenameW ~~ $sepreg; say $/;
> <camelia> rakudo-moar 589061: OUTPUT«「\」␤ 0 => 「\」␤»
> <Zoffix> m: constant $sepreg = rx/(<[\\/]>)/; my $filenameW =
> "c:\\g\\b.mp4"; $filenameW ~~ $sepreg; say $/;
> <camelia> rakudo-moar 589061: OUTPUT«Nil␤»
> <Zoffix> m: constant sepreg = rx/(<[\\/]>)/; my $filenameW =
> "c:\\g\\b.mp4"; $filenameW ~~ sepreg; say $/;
> <camelia> rakudo-moar 589061: OUTPUT«「\」␤ 0 => 「\」␤»

Fixed with commit https://github.com/rakudo/rakudo/commit/5ac593ee098f204ea69ef57edd9ae0925c544ea4