From: Ryan Davis Date: 2011-05-23T23:57:15+09:00 Subject: Re: Inconsistency between irb and Win7 cmd --Apple-Mail-1--709671579 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On May 23, 2011, at 5:09, William Knapp wrote: > vArr is an array of letters and dArr is an array of integers. > The label should interweave the two. > > When I run the code from irb the resulting string is: T0S6S50Q0 > When I run the code as part of a .rb file from the command prompt in > Win7, I get: 8408368350810 Sounds like a pathing issue and you're running 1.8 via cmd and 1.9 for irb. ?a in 1.8 is the ASCII code for 'a'. ?a in 1.9 is 'a'. Try %w[a b c]. It works the same in both. --Apple-Mail-1--709671579--