From: pjb@... (Pascal J. Bourguignon) Date: 2009-02-15T21:38:25+09:00 Subject: Re: Multidimensional hash - get all not blank keys "David A. Black" writes: > On Sun, 15 Feb 2009, Pascal J. Bourguignon wrote: > >> "Michael .." writes: >>> I have this Hash. >>> >>> result={"1"=>{"6"=>"", >>> "7"=>"", >>> "8"=>"", >>> "1"=>"Value1", >>> "2"=>"", >>> "3"=>"Value2", >>> [...] >>> Is it possible to get all keys with a the value. >> >> Yes, it is possible. >> >> >> >> >> Oh! Perhaps you meant "How?"? Well perhaps you don't see them because >> they're behind your eyes, but you've got a few billion interconnected >> neurons inside your skull. They're called a "brain". So normally, >> you should be able to switch it "on", start to think, and it should >> help you to program a function to "get all keys with a the value". >> Try it, you'll be pleased! > > Please don't post messages like this to this list. There's no benefit > to anyone. Hopefully, it should be of benefit to the OP. He should really start to think by himself, and start to learn how to find the information he lacks on the web. There is the whole Ruby language reference available on the web, there is ri, as soon as he knows what a hash table is, he should be able to activate a couple of neurons and find out how to do what he wanted to do. -- __Pascal Bourguignon__