Efficiently going through results

2009-06-09 Thread Dave Tang
Hello, I have a problem, which I have put into an analogy. Suppose a parent has 11 children. These children like chocolate. If 9 or more of the 11 children from the same parent like a particular chocolate, the parent will like the chocolate. I want to find out what types of chocolate each

AW: Efficiently going through results

2009-06-09 Thread Thomas Bätzler
Dave Tang d.t...@imb.uq.edu.au asked: my %result = (); foreach my $parent (keys %listOfParent){ my $chocolate = ''; foreach my $child (keys %{$listOfParent}{$parent}){ foreach ($listOfParent{$parent}{$child}){ $chocolate = $_; Why not foreach my $chocolate

Re: Efficiently going through results

2009-06-09 Thread Jim Gibson
On 6/9/09 Tue Jun 9, 2009 1:24 AM, Dave Tang d.t...@imb.uq.edu.au scribbled: Hello, I have a problem, which I have put into an analogy. Suppose a parent has 11 children. These children like chocolate. If 9 or more of the 11 children from the same parent like a particular chocolate, the