in reply to How to change an Array to a Hash
vinoth.ree has provided an easy and good solution.
But it might be even simpler to assign directly the list to the hash:
my %people = ("Andy", "1995", "Sarah", "1990", "Sam", "1992"); [download]