my %hash = ( '1' => 'One', '2' => 'Two', '3' => 'Three', ); print "Key: $_ and Value: $hash{$_}\n" foreach (keys%hash);