http://www.perlmonks.org?node_id=1014824


in reply to Multidimensional arrays within arrays

Remember this: even though the "array" data-structure in Perl is "only one-dimensional," each element in this (or any other type of ...) data structure can be a reference to "anything at all." Therefore, you can construct data structures of arbitrary complexity. "Multi-dimensional arrays" are the least of what you can do.