in reply to Hash Values into Array
Another solution, perhaps somewhat simpler, might be to use the values function, rather than the keys function. Something like this:
for my $os (values %$info) { for my $testcase (values %$os) { push @errors, values %$testcase } }
This should also work if you have several errors possible for one testcase, such as 'error1', 'error2', etc.
Update: corrected the typos indicated by kcott.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash Values into Array
by kcott (Archbishop) on Aug 17, 2013 at 06:39 UTC | |
by Laurent_R (Canon) on Aug 17, 2013 at 08:08 UTC | |
|
Re^2: Hash Values into Array
by locked_user sundialsvc4 (Abbot) on Aug 17, 2013 at 01:03 UTC |