I'd agree with Hassen here. p is 112 decimal. http://en.wikipedia.org/wiki/Ascii#ASCII_printable_characters
<http://en.wikipedia.org/wiki/Ascii#ASCII_printable_characters>Regards, James On Sun, Jun 13, 2010 at 5:08 AM, Hassan Schroeder < [email protected]> wrote: > On Sat, Jun 12, 2010 at 9:49 AM, rpuspana <[email protected]> wrote: > > > a = "parsley" > > > > but a[0] returns 112 which is ASCII for 'o' not 'p' > > > is somethig wrong with my ruby or my code?? > > I think something's wrong with the ASCII lookup table you're using :-) > > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

