Skip Menu |
Report information
Id: 133772
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: daxim <daxim [at]>

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: stringification of regex with variables
Download (untitled) / with headers
text/plain 405b
rpm -qi rakudo | rg Version Version : 2018.12 my Str $s = 'abc'; my @l = $> $g { /$g/ }); # time passes @l.perl.say Expect: [/a/, /b/, /c/] Got: [/$g/, /$g/, /$g/] The generated regexes do work, they just display wrong/useless. At the time I inspect the data structure, $g had been assigned multiple times with varying values and is long already out of scope.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at