From: Anton Ivanov Date: 2008-09-11T09:09:41+09:00 Subject: Re: pass by reference in each loop Xiong Chiamiov wrote: > The problem is that, unlike practically everything else in Ruby, each > loops don't pass by reference, so my assignments get lost. > You're confused. The variable chunk contains a reference to an object. You are assigning a different reference to that variable, that's all. For your problem, look into map (or map!) -- Posted via http://www.ruby-forum.com/.