From: Nathan Olberding Date: 2006-04-08T01:12:39+09:00 Subject: Re: Simple Question About Deleting Instances > Some code would help. Saying: ... require 'my_stuff' # Includes the Report class file_list = Dir.new("reports") yes_list = [] no_list = [] file_list.each do |file| if file_name =~ /yes/ report = Report.new(file_name) yes_list.push(report.ID_list) elsif file_name =~ /no/ report = Report.new(file_name) no_list.push(report.ID_list) end end puts yes_list.inspect puts no_list.inspect Both yes and no lists gather way more data than they're supposed to and based on the excess data I'm seeing, it looks like it just isn't deleting old data from the old instance of report. I've (feebly) tried report.delete, report.replace, and report = nil at the end of each if block, if that helps convey my goal. -- Posted via http://www.ruby-forum.com/.