From: Tim Wolak Date: 2008-04-23T05:08:38+09:00 Subject: Re: Hashes > I didn't realize this before, but even if it's off topic, I thought > I'd bring it up. > > Hashes -- during creation -- allow assignment more than once in 1.8.6 > with the last one taking precedence > > Is that somehow common knowledge that I missed in the Pickaxe? Just > one of those little things, I guess. > > irb(main):002:0> h = {[1, 2, 3] => [4, 5, 6], [1, 2, 3] => [7, 8, 9]} > => {[1, 2, 3]=>[7, 8, 9]} > > Todd > Ouch, I guess that would be a bad thing... If I'm going line by line then I would think I would be ok then as the hash is closed after I finish to take on the next line correct? Hmmm nice catch Todd! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.