From: Jesse Crockett Date: 2008-09-22T03:51:36+09:00 Subject: Re: comparison of Array with Array failed I fixed the problem by passing a ternary operator to the assignments in the hash. And also I just realized that your solution had been a part of the problem, if not the whole problem, and fixed it just before reading your solution. Maybe you sent it via karma, and I'm just learning a little more here :-) Thomas B. wrote: > Jesse Crockett wrote: >> rich = very_plentiful = plentiful = good_source = >> small_amount = minimal_amount = Array.new > > You are creating one array and assigning references to it to all your > variables. Everything you do to any of them, is done to all of them, > because they all point to one array. This is not what you intended to > do, I suppose. Make each assignment in a separate line. > > TPR. -- Posted via http://www.ruby-forum.com/.