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/.