[perl #127749] [BUG] Constant Seq in a loop not reinitialized

2016-07-21 Thread jn...@jnthn.net via RT
On Sun Mar 20 08:30:28 2016, awwaiid wrote: > Here is an example that works as expected: > > > for ^2 { my $n = 5; say [+] (^$n X ^$n) } > 50 > 50 > > If we use constants to construct the Seq, it is not re-created on the > second loop iteration: > > > for ^2 { say [+] (^5 X ^5)

[perl #127749] [BUG] Constant Seq in a loop not reinitialized

2016-03-21 Thread via RT
# New Ticket Created by awwa...@thelackthereof.org # Please include the string: [perl #127749] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127749 > Here is an example that works as expected: > for ^2 { my $n = 5; say