You need to use a hash of arrays (the values of the hash are
arrays -- references to arrays, actually) or a hash of hashes (the values of the hash are references to other hashes).
Check out perldoc on the following:
perldsc (Perl data structures coolbook)
perlreftut (Perl references tutorial)
perlref (Perl references)
perllol (Perl list of lists)
I'd try perldsc first, as that's (for me at least) the most
straightforward.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.