print "$_\t$hash{$_}\n" foreach keys %hash; will always produce: Jim Baker 30 Jane Doe 39 John Doe 20