From: Nuralanur@... Date: 2006-07-28T17:56:18+09:00 Subject: Re: Creating hashes with duplicate keys -------------------------------1154076973 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Try this: class Array def keys_and_values(hash_value) new_hash={} for k in self new_hash.update({k,hash_value}) end return new_hash end end same_value='identical' my_array=['a','b','c','d'] hash=my_array.keys_and_values(same_value) p hash Best regards, Axel -------------------------------1154076973--