On Wed, Jul 13, 2011 at 8:35 PM, Aristotle Pagaltzis <pagaltzis@gmx.de>wrote: > If you write ++${\10} that should yield 11 no matter how often > you evaluate it. You should get a copy (or rather, via CoW, > a potential copy) when you evaluate a constant, and that’s what > you’re then mutating. If you want it read-only then make it > read-only. > It would fix the following nicely $ perl -E'for (1..2) { for ((),1..3) { print $_++; } say ""; }' 123 234Thread Previous | Thread Next