[perl #111474] [BUG] Variable in string in <{ }> interpolator in regex doesn't get a proper lookup in Rakudo

2017-09-10 Thread Sam S. via RT
On Thu, 01 Mar 2012 13:07:28 -0800, masak wrote:
>  nom: '' ~~ / :my $a; <{ '$a' }> /
>  nom 48af8c: OUTPUT«===SORRY!===␤Variable $a is not
> declared␤at eval_0:1␤»

This works fine now - and has so for a while¹, apparently since a commit² in 
May 2015:

say '123' ~~ / :my $a=2; <{ '$a' }> /, # '2'

---
[1] https://gist.github.com/Whateverable/1df76358c7486886538f9ead60b13d1f
[2] 
https://github.com/rakudo/rakudo/commit/f0e142b3a24e60f4bdde145286d508b916f3ecde


[perl #111474] [BUG] Variable in string in { } interpolator in regex doesn't get a proper lookup in Rakudo

2012-03-01 Thread Carl Mäsak
# New Ticket Created by  Carl Mäsak 
# Please include the string:  [perl #111474]
# in the subject line of all future correspondence about this issue. 
# URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111474 


masak nom: https://gist.github.com/1951347
p6eval nom 48af8c: OUTPUT«===SORRY!===␤Variable $a is not
declared␤at eval_0:1␤»
masak huh!
jnthn nom: x ~~ /:my $a = 42; { say $a } ?/
p6eval nom 48af8c: OUTPUT«42␤»
jnthn oh...
jnthn it's eval'ing that regex, no?
jnthn masak: if you can golf that one it'd be nice...
masak gotcha.
masak I'll golf it and then RT it.
masak nom: '' ~~ / :my $a; { '$a' } /
p6eval nom 48af8c: OUTPUT«===SORRY!===␤Variable $a is not
declared␤at eval_0:1␤»
masak golf'd.
* masak submits rakudobug