in reply to Strange aliasing(?) when modifying variable in range operator
Your code actually does give an output:use strict; use warnings;
Those blank lines are "output".C:\....\Projects>perl -wE "@a=1..9; $i=0; say @a[$i..($i+=3)-1] while +$i<@a" C:\....\Projects>perl>
|
|---|