From: Paul Roche Date: 2010-11-03T01:19:47+09:00 Subject: Printing out contents of 2 arrays using a loop Hi. I'd like to print out the contents of 2 arrays as follows........ print array1[0] array2[0] print array1[1] array2[1] etc array1 holds names array2 holds occupation so an example print out will be....... Joe Bloggs Carpenter etc I'm struggling constructing a loop or iteration that prints this out. The psuedocode is something as follows... for length of array1 print out contents of array1 and array2 or something similar Any help is appreciated thanks. -- Posted via http://www.ruby-forum.com/.