From: dblack@... Date: 2003-08-02T20:44:16+09:00 Subject: Re: A bundle of newbie queries Hi -- On Sat, 2 Aug 2003, Brian Candler wrote: > > It seems you are doing something strange. Consider these examples: > > h = {} > h[/blah/] = 1 > h[/blah/] = 1 > h[/blah/] = 1 > p h #>> {/blah/=>1, /blah/=>1, /blah/=>1} > > In other words, it looks like you are populating the hash with three > different Regex objects as the key. That's not very useful. In 1.8.0, though: $ ruby/1.8.0/bin/ruby -ve 'h={};h[/b/]=1;h[/b/]=1;p h' ruby 1.8.0 (2003-07-31) [i686-linux] {/b/=>1} David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav