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

substitution of Array of Str fails to provide backreferences #4645

Closed
p6rt opened this issue Oct 13, 2015 · 4 comments
Closed

substitution of Array of Str fails to provide backreferences #4645

p6rt opened this issue Oct 13, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 13, 2015

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

Searchable as RT126349$

@p6rt
Copy link
Author

p6rt commented Oct 13, 2015

From blackcatoverwall@gmail.com

perl6 --version​:
This is perl6 version 2015.09 built on MoarVM version 2015.09

source code​:

#!/usr/bin/env perl6

my @​strs = ("11 22 33", "44 55 66", "77 88 99");

for @​strs {
  $_ ~~ s/\s(\S+)\s(\S+)/-$0-$1/;
}

say @​strs;

output​:
  Use of Nil in string context in code at smart_match.p6​:6
  Use of Nil in string context in code at smart_match.p6​:6
  [11-- 44-22-33 77-55-66]

should be​:
[11--22--33 44-55-66 77-88-99]

@p6rt
Copy link
Author

p6rt commented Oct 18, 2015

From @FROGGS

Patch​: rakudo/rakudo@32d7b08334
Tests​: Raku/roast@f665268fde

Closing ticket.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 18, 2015

From @FROGGS

Patch​: rakudo/rakudo@32d7b08334
Tests​: Raku/roast@f665268fde

Closing ticket.

@p6rt p6rt closed this as completed Oct 18, 2015
@p6rt
Copy link
Author

p6rt commented Oct 18, 2015

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant