> Christoph wrote:
> >          [@a, @b].collect! { |iv| iv+=1 }
> 
> This doesn't appear to change the values of @a and @b, which it seems
> like the OP wanted.

Right - after this line, the array now is [2, 3], but @a still points to 1
and @b still points to 2.

Before:
  ary[0] -> @a -> 1
  ary[1] -> @b -> 2

After:
  ary[0] -> 2
  ary[1] -> 3
  @a -> 1
  @b -> 2

Chris