From: Robert Dober Date: 2008-05-27T05:03:22+09:00 Subject: Re: Why "ABCDE"[0] returns an integer instead of 'A' ? On Mon, May 26, 2008 at 4:59 PM, Phil wrote: > On May 26, 1:21 pm, Robert Dober wrote: >> ... >> >> > Why 65? it's the Ascii value of A: >> > puts "\x65" >> > => "e" >> >> because of >> "e"[0] == ?e && ?e == 0x65, >> what did you want to do with \x? > > \x is for hexadezimal. 65 is indeed the (decimal) Ascii value of 'A'. > hex = dez > 0x65 = 101 > 0x41 = 65 > Thanks for correcting my error Philip I should have written "A"[0] etc.etc. I got confused by the => e R.