From: simon harrison Date: 2011-09-10T20:52:16+09:00 Subject: Re: Creating a hash from two arrays Thanks for all the help. I knew about zip but as both arrays have to have the same number of elements it doesn't help in this case. Two more questions: 1. Are there any tutorials/blog posts explaining converting arrays to hashes and using inject? 2. My real aim is to move files/directories into A-Z directories. I'm also interested in the general principles for copying values that are common from different structures to another structure. Any tutorials for that sort of thing? Cheers again. -- Posted via http://www.ruby-forum.com/.