From: Hal Fulton Date: 2006-04-14T15:40:27+09:00 Subject: Re: Strange Integer() behavior Patrick Joyce wrote: > I am learning Ruby and have encountered an error on a call to > 'Integer("039")' in > gems/ruby-web-1.1.1/lib/web/htmlparser/sgml-parser.rb while working on a > little screen scraper project. The leading zero leads Ruby to think it's octal, but 9 isn't valid in an octal number. I think "039".to_i would work (as it doesn't assume octal). Hal