On 04/30/2014 05:21 PM, [email protected] wrote:
# New Ticket Created by  Schwenn, Peter
# Please include the string:  [perl #121772]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=121772 >


Designation: Non-Finmeccanica
Dear Perl6'rs

[In short: no variation of   $x ~~ s/...(...)../....$0..../;   seems to work 
(to substitute any capture).]

With a current Rakudo, I cannot reproduce this:

my $line = "bar foo"; $line ~~ s/(\w+) \s+ (\w+)/$1 $0/; say $line
# output:
foo bar

So either the bug has been fixed in the mean time (and a Rakudo Star release is upcoming today), or you need to produce a runnable piece of code (including example data) with which we can replicate your problem.

Cheers,
Moritz

Reply via email to