From: Barry Sperling Date: 2004-08-28T01:59:05+09:00 Subject: Question about ? operator for ASCII Hello, I am a nuby and I couldn't find how to get the ASCII value of a character in a variable. I looked in the Pragmatic Programmer and did this: s = "ABC DE." s.scan( /./ ) do |a| puts ?a end but only got the ASCII value of the small letter 'a' ( 97 ). What do I need to do? Thanks, Barry