At Thu, 21 Dec 2000 23:40:04 +0900, Jiangyi Liu <jyliu / 163.net> wrote: > "Hello".each_byte { |c| > if c == "o" > print "oh, i got an o!", "\n" > end > } Examine c.type and "o".type. each_byte iterates over each 'byte'(small integer) and "o" is not an integer, it is a String instance of which length happens to be 1. # A deep i18n/m17n argument might arise...:-) -- OZAWA -Crouton- Sakuro E-Mail: mailto:crouton / weatherlight.org Web: http://www.weatherlight.org/~crouton/ PGP: C98F 74E0 AEEB 4578 1DFC F650 3BE0 9627 11FC C9F5 VERBA VOLANT, SCRIPTA MANENT