# yes, the %hash gets a @ in front to show that we are going to use multiple keys; perl knows it's really %hash being used instead of @hash because of the {} @hash{KEYLIST} = (); print "unique keys: ", scalar keys %hash;