Chris Uzdavinis wrote: > > Yuri Leikind <YuriLeikind / scnsoft.com> 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 Ok, but as this a form of a Fixnum literal, this trick seems to be impossible with a character stored in a variable. I wish I could do this: var="a" puts var.ord -- Best regards, Yuri Leikind Random signature: The only "intuitive" interface is the nipple. After that, it's all learned. -- Bruce Ediger, bediger / teal.csn.org, on X interfaces