I suggest that you may wish to explore such questions at
http://www.perlmonks.org.
Basically, the Perl language supplies only "one-dimensional" lists and arrays and hashes,
but says that any of those elements could be "a reference to" anything-at-all. So, your "two-dimensional" (or
"n"-dimensional) data structure is built up out of a list or array, in which each element consists of "a reference to" another such list or array,
ad infinitum.