From: dima Date: 2007-10-05T23:30:16+09:00 Subject: Re: Hash assignment (what's happening?) On Oct 5, 4:16 pm, Hector Quiroz wrote: > From within irb, I'm creating a hash and populating it with the > following data. > > irb(main):007:0> {:QHector => 1967, :WKelly => 2551, :ECron => 0220, > :VLaura => 4003, :LWalter => 1188} > > Why is the value for the ':ECron' coming back as 144 instead of 0220? > > => {:ECron=>144, :VLaura=>4003, :LWalter=>1188, :QHector=>1967, > :WKelly=>2551} > irb(main):008:0> > > Thanks for your help in advance. > -- > Posted viahttp://www.ruby-forum.com/. I think this could help :-) http://blog.wordaligned.org/articles/2006/08/12/octal-literals