in reply to hash of arrays to a subrutine?

Check out intro to references and perhaps References quick reference.