in reply to Re^3: Nested while each over a hash -> infinite loop
in thread Nested while each over a hash -> infinite loop
In case of mrt1 I do something, because a is matched. Afterwards I need to do something, because sum_ab has a in its 'values'-hash. Afterwards I have to check if some sum includes 'sum_ab' and so on...my $test = ( 'a' => { 'identifiers' => { 'mrt1' => 1, 'mrt2' => 1, 'mrt3' => 1, }, }, 'b' => { 'identifiers' => { 'mrt2' => 1, 'mrt3' => 1, 'mrt6' => 1, }, }, 'c' => { 'identifiers' => { 'mrt1' => 1, 'mrt2' => 1, 'mrt3' => 1, }, }, 'd' => { 'identifiers' => { 'mrt2' => 1, 'mrt3' => 1, 'mrt6' => 1, }, }, 'sum_ab' => { 'values' => { 'a' => 1, 'b' => 1, }, }, 'sum_cd' => { 'values' => { 'c' => 1, 'd' => 1, }, }, 'sum_abcd' => { 'values' => { 'sum_ab' => 1, 'sum_cd' => 1, }, }, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Nested while each over a hash -> infinite loop
by davido (Cardinal) on Jun 10, 2011 at 09:15 UTC | |
by Eythil (Acolyte) on Jun 10, 2011 at 09:22 UTC | |
|
Re^5: Nested while each over a hash -> infinite loop
by davido (Cardinal) on Jun 10, 2011 at 08:51 UTC |