From: 7stud -- Date: 2007-11-01T03:25:49+09:00 Subject: Re: Why, oh, why, little regexp? James Gray wrote: > On Oct 31, 2007, at 7:46 AM, 7stud -- wrote: > >>> irb(main):006:0> "8675309".each_byte{ |x| p x - ?0 } >> >> "8675309".each_byte{|code| puts code.chr} >> >> ...although slightly slower. > > Printed content aside, it's not equivalent. The original code is > making Integers, not Strings. > Whoops. -- Posted via http://www.ruby-forum.com/.