# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #111518] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111518 >
<masak> nom: grammar G { regex TOP { (foo) <.panic: "!$0!"> }; method panic($m) { die $m } }; G.parse("foo") <p6eval> nom efad32: OUTPUT«!! in method panic [...] <masak> why doesn't this output '!foo!'? <jnthn> hm <masak> also, is there a workaround? :) <moritz> yes, a block <moritz> the problem is basically that the regex engine doesn't publish match variables unless it is deemed necessary <moritz> and when parsing argument strings, that doesn't happen (but it should) <jnthn> moritz: Yeah, it's that. <jnthn> moritz: Just hit on the same conclusion. * masak submits rakudobug