in reply to Two arrays into hash

perlreftut describes how to construct such data structures.

If you have problems understanding something in there, or you hit some errors while trying, feel free to ask and explain what's the problem.