From: Max Norman Date: 2009-07-22T06:15:30+09:00 Subject: Re: Simple problem with Regular Expression > fruit = gets.chomp.downcase > > case fruit > when "orange" > color = "orange" > when "apple" > color = "green" > when "banana" > color = "yellow" > else > color = "unknown" > end > > if %w{a e i o u}.include?(fruit[0]) > puts "An #{fruit} is #{color}." > else > puts "A #{fruit} is #{color}." > end Thanks for this. I've just come across a few of these concepts, like literal arrays, denoted by %w{}. Could you explain your usage of the literal array? -- Posted via http://www.ruby-forum.com/.