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.

-- 
(\[ Kent Dahl ]/)_    _~_    __[ http://www.stud.ntnu.no/~kentda/ ]___/~
 ))\_student_/((  \__d L b__/  NTNU - graduate engineering - 4. year  )
( \__\_/__/ ) _)Industrial economics and technological management(
 \____/_\____/ (____engineering.discipline_=_Computer::Technology___)