# New Ticket Created by  jn...@jnthn.net 
# Please include the string:  [perl #66034]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66034 >


01:21 <@jnthn> rakudo: my %h = B => 2; my $x = "ABC"; $x .= 
subst(/(<[BD]>)/,
{%h{$0}},:global); say $x;
01:21 < p6eval> rakudo 695300: OUTPUT«A2C␤»
01:21 <@jnthn> rakudo: my %h = B => 2; my $x = "ABC"; $x.=subst(/(<[BD]>)/,
{%h{$0}},:global); say $x;
01:21 < p6eval> rakudo 695300: OUTPUT«Use of uninitialized value␤Use of
uninitialized value␤AC␤»
01:21 <@jnthn> Nailed it.
01:21 < DanielC> spaces?
01:22 <@jnthn> DanielC: Bit more to it than that. Those two actually parse
differently.
01:22 <@jnthn> But should be behaviourly equivalent.
01:22 <@jnthn> So, Rakudo bug.

Reply via email to