in reply to Converting HoA into AoH

To get all the combinations of the data being asked for (or 'Cartesian Product' as one response put it), there is always Math::Combinatorics

-M

Free your mind