From: Wood Yee Date: 2009-12-02T23:25:59+09:00 Subject: Re: Advice - Printing All Options > a = [1,2,3] > b = ["a","b","c"] > c = [7,8,9] > > a.each {|x| b.each {|y| c.each {|z| puts "#{x}/#{y}/#{z}"}}} > > There's probably a better way. > -- > Paul Smith > http://www.nomadicfun.co.uk > > paul@pollyandpaul.co.uk PERFECT!! You totally nailed it! That's exactly what I wanted. Woo hoo! I'll study the code and learn from this. Thanks SO much! Here's what I did: Positions = ['Rear', 'Mount', 'Knee', 'Side', 'Turtle', 'Guard'] Direction = ['Top', 'Bottom'] Side = ['Left', 'Right'] Positions.each {|x| Direction.each {|y| Side.each {|z| puts "#{x}/#{y}/#{z}"}}} -- Posted via http://www.ruby-forum.com/.