This is much easier and more efficient than of the suggestions on this
site. You should not have to index anything.
letters =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
character = letters.split(//)
ascii=[]
character.each do |a|
ascii << "#{a} \t #{a[0]}"
end
puts ascii
- aaron burgess
--
Posted via http://www.ruby-forum.com/.