From: Christoph Date: 2002-05-22T23:00:09+09:00 Subject: Re: Rewrite this without using eval... "Kent Dahl" wrote in .... > > [@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. Okay what about def inc_iv @a,@b = [@a,@b].collect! { |iv| iv+=1 } end /Christoph