in reply to Iterator for multidimensional arrays
How about recursion? You iterate the first dimension, calling yourself with its arrayref.