From: Paul Lutus Date: 2006-11-13T17:05:05+09:00 Subject: Re: Help convert a Perl user to the Ruby Way. Tom Pollard wrote: >> Add this line: >> >> hash ||= {} >> >> Means "if 'hash' is a hash, do nothing, otherwise create a hash". > > Strictly speaking, doesn't it mean "if 'hash' is nil (or false), > assign to a newly created empty hash"? Yes, and a good clarification. I was addressing the intent of the line, not its true basis. -- Paul Lutus http://www.arachnoid.com