From: Joel Pearson Date: 2013-01-13T08:50:38+09:00 Subject: Re: How to take information from a text file and add them to an array unknown wrote in post #1092079: > Am 12.01.2013 20:08, schrieb Joel Pearson: >> temparray.each { |ar| users_passwords[ar[0]] = ar[1] } > or: users_passwords = Hash[temparray] Nice! I didn't know about that trick. -- Posted via http://www.ruby-forum.com/.