From: Sean O'Dell Date: 2002-02-25T16:43:32+09:00 Subject: Re: Hash.each block parameters "David Alan Black" wrote in message news:Pine.LNX.4.30.0202242115480.4771-100000@candle.superlink.net... > On Mon, 25 Feb 2002, Sean O'Dell wrote: > > > I studied my code awhile and realized I should be using each_key. Hash.each > > provides TWO block parameters, not one like each_key (the key). I added the > > second parameter and things were fine again. > > When you iterate through a Hash with #each, you get each pair. So > your variable "key" is actually an two-element array: Okay...that's new to me...I didn't think multiple parameters were compressed into arrays when you only give on variable to the block parameters. It works now, thanks much! Sean