sorear/niecza — Issue #95: Capturing parens aren't recognized as capturing inside strings interpolated into regexes
Author: masak
Created: 2011-12-27 16:04:01+00:00
State: open

niecza: my $hello = "'/'hello'/'(<-[\\\\/\\\\.]>+)"; my $reg = / ^ $/; "/hello/bug" ~~ $reg; say $/[0];
niecza v13-1-gbfba5a3: OUTPUT«Any()␤»
niecza: my $hello = "'/'hello'/'(<-[\\\\/\\\\.]>+)"; my $reg = / ^ $/; "/hello/bug" ~~ $reg; say $/;
niecza v13-1-gbfba5a3: OUTPUT«# #}.hash)>␤»
niecza: my $hello = "'/'hello'/'(<-[\\\\/\\\\.]>+)"; my $reg = / ^ $/; "/hello/bug" ~~ $reg; say $/;
niecza v13-1-gbfba5a3: OUTPUT«#␤»
oh
it's not being recognized as a capturing operator :|
* masak submits nieczabug

The expectation being, of course, that there be a $/[0] with a match capturing "bug" in it.