# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #76608]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76608 >


<masak> rakudo: "foo$(my $x = 42)bar"; say $x
<p6eval> rakudo 3370f0: OUTPUT«===SORRY!===␤Redeclaration of symbol $x [...]
<masak> hm, redeclaration?
<masak> std: "foo$(my $x = 42)bar"; say $x
<p6eval> std 31772: OUTPUT«ok 00:01 118m␤»
<[particle]> what's that dollar for?
<masak> [particle]: variable interpolation
<[particle]> oh, i missed the quotes.
<ash_> rakudo: my $x; "foo$($x = 3)bar"; say $x;
<p6eval> rakudo 3370f0: OUTPUT«3␤»
* masak submits rakudobug

It's OK for the time being to declare variables inside $() in qq
strings like this. But Rakudo complains about redeclaration, and it
shouldn't. Note that STD.pm6 doesn't.

Reply via email to