foreach $var2 (keys %hash){ print "value: $hash{$var2}\n"; }