From: Austin Ziegler Date: 2004-08-28T02:07:28+09:00 Subject: Re: Question about ? operator for ASCII On Sat, 28 Aug 2004 01:59:05 +0900, Barry Sperling wrote: > 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 s.each_byte do |a| puts a end -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca