From: Eero Saynatkari Date: 2006-02-24T10:58:12+09:00 Subject: Re: Nuby - help with Ruby object references unknown wrote: > > > I appreciate any and all insight. > > cr > > --- code here --- > > #!/usr/bin/env ruby > > require 'find' > > h = Hash.new { |h,k| h[k] = [] } > duplicates = Hash.new { |h,k| h[k] = [] } I am pretty sure this is where the problem is. Blocks are closures so the 'h' in the second block refers to the first Hash. Just change the first variable name from 'h' to 'hash' in the whole file (it is a bit clearer anyway) and you should be OK. > E -- Posted via http://www.ruby-forum.com/.