From: Brian Candler Date: 2003-08-30T22:28:29+09:00 Subject: Re: Quoted string problem On Sat, Aug 30, 2003 at 10:18:18PM +0900, Meino Christian Cramer wrote: > I did the following: > > status = line[279] > > I got > > 72 > > ("H" is the 72scnd character of the ASCII table.) > > Oh, I thought...better to do a > > status = status.to_s() > > Now I got a > > "72" > > Damn! In the input file there is literally a "H". How can I convince > Ruby to read a "H" and no "72" or 72? line[279..279] > Sometimes I think, the "principle of leas surprise" isn't working > everywhere to its completeness.... ;) I would agree with you. It's just one of those things you get used to. Regards, Brian.