Skip to content
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

$/ values not populated in block when using subcapture on Rakudo-JVM #3235

Closed
p6rt opened this issue Sep 18, 2013 · 4 comments
Closed

$/ values not populated in block when using subcapture on Rakudo-JVM #3235

p6rt opened this issue Sep 18, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Sep 18, 2013

Migrated from rt.perl.org#119877 (status was 'resolved')

Searchable as RT119877$

@p6rt
Copy link
Author

p6rt commented Sep 18, 2013

From @hoelzro

The test should demonstrate what I mean.

@p6rt
Copy link
Author

p6rt commented Sep 18, 2013

From @hoelzro

use Test;

plan(1);

my $inner-match;

my regex word { \w+ }

my regex my-match { <word> { $inner-match := $&lt;word> } }

'foo' ~~ /<my-match>/;
ok($inner-match eq 'foo');

@p6rt
Copy link
Author

p6rt commented Sep 23, 2013

From @hoelzro

I should also mention that while this form produces the bug​:

regex foo { <word> { say($<word>) } }

This form does not​:

$s ~~ /&lt;word&gt; { say($&lt;word>) } }/

@p6rt
Copy link
Author

p6rt commented Feb 22, 2014

@hoelzro - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Feb 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant