On 8/24/06, Audrey Tang <[EMAIL PROTECTED]> wrote:
Mark, can you add a test to t/statements/for.t? A commit bit is on
its way to your inbox. :-)
Happily, as soon as I receive it.
Upon further investigation I see that the problem is not rw parameters
per se, but the ability to pass individual lvalue items into them.
That is, this works (and a test for it is already in for.t):
my @a = (0..2); for @a { $_++ }
say @a; # 1,2,3
But this dies with the "Can't modify constant item: VRef <Scalar>" message:
my ($a,$b,$c) = 0..2; for ($a,$b,$c) { $_++; }
That may be what you fixed; I haven't built r12675 yet to see. But
it's not what I thought the problem was. :)
--
Mark J. Reed <[EMAIL PROTECTED]>