develooper Front page | perl.perl6.compiler | Postings from March 2018

[perl #126752] [BUG] $/ vs .hyper gets confused

From:
Jan-Olof Hendig via RT
Date:
March 8, 2018 18:28
Subject:
[perl #126752] [BUG] $/ vs .hyper gets confused
Message ID:
rt-4.0.24-30499-1520533692-1808.126752-80-0@perl.org
On Fri, 27 Nov 2015 12:30:15 -0800, zengargoyle@gmail.com 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.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About