in reply to Filling a hash in loop

Google is your friend:

Adding a key/value pair to a hash

For more examples, try this.

Update: fixed bad link.

-QM
--
Quantum Mechanics: The dreams stuff is made of