From: "Guy N. Hurst" Date: 2001-03-06T11:12:15+09:00 Subject: [ruby-talk:12072] Re: Opposite of Integer.chr jjthrash@pobox.com wrote: > > Howdy, > > Forgive my ignorance, but I can't seem to find a method that > returns the ASCII value of a given character. Can anyone help me > out? > Use the '?' operator, or subscript it out: irb(main):001:0> 65.chr "A" irb(main):002:0> ?A 65 irb(main):003:0>"A"[0] 65 Guy N. Hurst -- HurstLinks Web Development http://www.hurstlinks.com/ Norfolk, VA 23510 (757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl - HTML/Javascript