From: "Mikael Høilund" Date: 2008-08-18T16:05:58+09:00 Subject: Re: What's difference? On Aug 18, 2008, at 8:29, Kyung won Cheon wrote: > --- test1.rb --- > > b = 1 > puts a if a = b > > # NameError: undefined local variable or method `a' for main:Object > Parser peculiarity. You can't use a local variable defined for the first time in the clause of an inline-if for that statement. Define a before it reaches that line, or use this instead: if a = b then puts a end -- # Mikael Høilund def method_missing(m, a=0) a + m.to_s[/[a-z]+/].size * 2; end p What is the meaning of life?