Here's a recent question that covers effectively the same problem (except for an array-of-arrays instead of an array-of-hashes): Variable number of foreach loops
---Update:---
To summarize, the options seem to be:
In reply to Re: Dynamically create a foreach loop within a foreach loop?
by smls
in thread Dynamically create a foreach loop within a foreach loop?
by jdlev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |