[perl #126752] [BUG] $/ vs .hyper gets confused
[email protected] ("Jan-Olof Hendig via RT") Thu, 08 Mar 2018 10:28:12 -0800
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 27 Nov 2015 12:30:15 -0800, [email protected] wrote: > autarch noticed an oddness in File::Temp when used with .hyper: > https://gist.github.com/autarch/a701c62a40643169913f > > Seems to be golfable to this: > > sub foo() { my $x = "*" x 2; $x ~~ s/ "*" ** 1..* /{ "+" x $/.chars > }/; $x}; (1..100).map({say foo}); > > Make that (1.100).hyper.map ... and bad things happen. Fixed with commits 739d1a3f1c48656daf418967089e74f5f280f518 and 61a77e60a7d936415503d8916fcc7546569e9135. Tests needed.