# Re: Deleting objects?

**URL:** <https://www.ruby-forum.com/t/re-deleting-objects/68946>\
**Category:** Ruby\
**Created:** [February 15, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/re-deleting-objects/68946 "2006-02-15T23:48:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaatschS\_Bernd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/fbc32d/32.png) [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Post date:** [February 15, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/re-deleting-objects/68946/1 "2006-02-15T23:48:24Z")

</div>

My mistake:

I set an variable to nil outside the loop and then the second time  
around it  
was not nil and therefore not populating the hash as I expected.

-Bernd
