Subject: [ruby-talk:17650] Re: Ruby equivalent for ord() in Perl
From: Chris Uzdavinis <chris atdesk.com>
Date: Wed, 11 Jul 2001 23:16:08 +0900
References: 25613
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