foreach my $key (keys %hash) { print "$key \t $hash{$key} \n"; } #### while ( my ($key, $value) = each %hash) { printf "%10s\t%10s\n", $key, $value; }