From: Andrew Johnson Date: 2004-12-03T10:12:42+09:00 Subject: Re: ordered hash ? On Thu, 02 Dec 2004 21:51:40 GMT, itsme213 wrote: >> I have an ohash in the code to PDF::Writer that >> you're welcome to use. > > I may have to add some Hash conveniences, like default blocks. Thanks. There are many more methods than just #[]= and #each that should be (re)defined for an insert-order Hash --- including #delete, #delete_if, #clear, #keys, #values, and others. The OrderedHash on RAA goes a long way towards (re)defining the methods that might make sense for such an object. Fixing (or overriding) the #== method (depending on the semantics you desire) would probably be a trivial matter (adding a check that the second hash is also an OrderedHash seems a likely choice). That module's author has been quick to respond to bug reports/fixes in the past. regards, andrew