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 <
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Sat, Jun 12, 2010 at 9:49 AM, rpuspana
<rpuspana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.