print "Word ? "
while (word=$stdin.gets).size>1
 puts word.chomp.upcase.split(//).map { |l| conv(l) }.join("")
 print "Word ? "
end

-- 
Posted via http://www.ruby-forum.com/.