> At a recent talk, Larry showed a line of code that was something like: > > (@a; @b; @c) := (@x; @y; 1,2,3); > > I'm curious about the mapping of @c to a list of constants; if I write > > @c[0]++; > > am I bumping the value of 1?
No. We've learnt that lesson, at least :-) My understanding is that: @c[0]++ will get you a run-time "Modification of a read-only value attempted" exception. The Perl 5 analogy for binding an array is what happens to @_ in a subroutine: sub foo { $_[0]++ } foo(1,2,3); Damian