From: Gavin Sinclair Date: 2003-09-11T13:42:36+09:00 Subject: Re: What *are* variables? Which are nil now? > Gavin Sinclair wrote: > >> # Now, who can tell me what that "_" local variable is? Extra points >> for # telling me why I should have known all along. > > Must be an irb thing. I don't see it when executing your code in ruby > directly, only in irb. Ah, interesting. My instinct is to ask: "how can irb inject a local variable into *my* local context?" I think I've seen code where "_" is used as a parameter in a block, signifying that we're not interested in that value. For instance: hash.map { |_, value| f(value) } Gavin