Pierre-Charles David wrote:
> 
> 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
> 
> This works only for litterals, whereas 'c'[0] also works with variables
> : aString[0].
> 
Thanks, this is it !

-- 
Best regards,
Yuri Leikind

Random signature:
It's documented in The Book, somewhere...
             -- Larry Wall in <10502 / jpl-devvax.JPL.NASA.GOV>