From: Xiong Chiamiov Date: 2008-09-12T09:32:09+09:00 Subject: Re: pass by reference in each loop Anton Ivanov wrote: > I think you're getting yourself more and more confused. Quit posting, > fire up irb and play around. What do you get when you do hash.each > {|key, value| key = value} ? Is there any difference between > [1,2,3].each {|x|} and a,b,c=1,2,3; [a,b,c].each {|x|}? etc. I think that the solution is the only part that confuses me now. I've done quite a bit of playing around with irb, which is how I got to understanding that I can't seem to do what I want (DRY) with the method I was trying to use (variables in an array). What I'm trying to find now is if there *is* a solution that will work for my particular circumstances. -- Posted via http://www.ruby-forum.com/.