From: stephen.sykes@... Date: 2001-07-11T23:45:18+09:00 Subject: [ruby-talk:17652] Re: Ruby equivalent for ord() in Perl Or you could use 'c'[0], useful when you have a string: x = 'c' x[0] # ==> 99 Stephen. Yuri Leikind writes: > Can't find the equivalent of Perl ord() in > Ruby. There's chr(), though. > > It's probably in front of my eyes, but ... Perl: ord('c') # ==> 99 Ruby: ?c # ==> 99 -- Chris