Hi all,
I am trying to change a regex programmatically. For that I insert a
variable in another regex. However, the match object appears to have
lost the capture of the inner regex. In a code example:
=========
my Match $match;
my $top = rx/ \( $<core> = [ \w* ] \) /;
given "(abc)" {
$match = m/^ <$top>/;
}
if $match {
say "core is { ~$<core> }";
}
=========
Using the latest rakudo release (2016.01.1), I find that the matching
process works but the capture gets lost. Any ideas?
Thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy