From: Curt Sampson Date: 2008-01-24T08:02:45+09:00 Subject: Re: why must I initialize this variable? On 2008-01-23 02:40 +0900 (Wed), matt neuburg wrote: > puts "#{result}" if (result = h[k]) > > ...I get an error... > Another way of understanding my confusion is to notice that this *does* > work: > > if (result = h[k]) then puts "#{result}" end This is just one of those little annoyances in Ruby. You'll find things like this all over the place. You may or may not get used to it. I never have, but I live with it while waiting for the perfect language to come along. cjs -- Curt Sampson +81 90 7737 2974 Mobile sites and software consulting: http://www.starling-software.com