From: Julian Leviston Date: 2009-02-16T00:00:58+09:00 Subject: Re: Multidimensional hash - get all not blank keys I agree. People have a tendency to not try. They come wanting answers without hving thought about it themselves. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 16/02/2009, at 1:53 AM, pjb@informatimago.com (Pascal J. Bourguignon) wrote: > "David A. Black" writes: > >> On Sun, 15 Feb 2009, Pascal J. Bourguignon wrote: >> >>> "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. >> >> It won't be, and can't be. There's no information in it and no >> advice, >> just a string of snide, smug insults. Please keep a civil tone on >> this >> list. Thanks. > > You are much more insulting than I. You are assuming he doesn't know > how to do it, how to search and program the solution by himself. > > I'm only saying he's lazy. > > > -- > __Pascal Bourguignon__ >